-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 1 KB
/
pull_request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI Test
on: [push, pull_request]
# Cancel prev CI if new commit come
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CI: true
VERSION: ${{ github.event.pull_request.number }}
permissions:
contents: read
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install deps
run: yarn install
- name: Typecheck
run: yarn typecheck
- name: Template react-recoil Code Check
run: |
cd templates/template-react-recoil
yarn install
yarn prettier --check .
yarn lint --no-cache
yarn tsc
- name: Template react-ts Code Check
run: |
cd templates/template-react-ts
yarn install
yarn prettier --check .
yarn lint --no-cache
yarn tsc