File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,14 @@ name: CI
22
33on :
44 push :
5- branches : ["main", "react-demo-app"]
5+ branches : ["main", "react-demo-app"] # remove "react-demo-app" before merge to main
66 pull_request :
77 types : [opened, synchronize]
88
9+ concurrency :
10+ group : pr-${{ github.head_ref }}
11+ cancel-in-progress : true
12+
913jobs :
1014 build :
1115 name : Build
@@ -19,15 +23,32 @@ jobs:
1923 - name : Build
2024 run : pnpm build
2125
26+ lint :
27+ name : Lint
28+ timeout-minutes : 15
29+ runs-on : ubuntu-latest
30+
31+ steps :
32+ - uses : actions/checkout@v3
33+ - uses : ./.github/workflows/actions/install
34+
2235 - name : Lint
2336 run : pnpm lint
2437
38+ unit :
39+ name : Unit
40+ timeout-minutes : 15
41+ runs-on : ubuntu-latest
42+
43+ steps :
44+ - uses : actions/checkout@v3
45+ - uses : ./.github/workflows/actions/install
2546 - name : Test
2647 run : pnpm test
2748
2849 e2e :
2950 # Depend on build job to ensure the build is completed before running E2E tests
30- needs : [build]
51+ # needs: [build]
3152 name : E2E
3253 timeout-minutes : 15
3354 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments