@@ -3,59 +3,52 @@ name: CI
33on :
44 push :
55 branches :
6+ - main
67 - master
7- pull_request :
8+ pull_request : {}
89
910env :
1011 NODE_VERSION : 20
1112 PERCY_PARALLEL_NONCE : ${{ github.run_id }}-${{ github.run_number }}
1213 PERCY_PARALLEL_TOTAL : 1
1314
15+ concurrency :
16+ group : ci-${{ github.head_ref || github.ref }}
17+ cancel-in-progress : true
18+
1419jobs :
1520 lint :
16- name : Lint files
21+ name : " Lint"
1722 runs-on : ubuntu-latest
18- timeout-minutes : 5
19- steps :
20- - name : Check out a copy of the repo
21- uses : actions/checkout@v4
23+ timeout-minutes : 10
2224
25+ steps :
26+ - uses : actions/checkout@v4
2327 - uses : pnpm/action-setup@v4
24-
25- - name : Use Node.js ${{ env.NODE_VERSION }}
26- uses : actions/setup-node@v4
28+ - uses : actions/setup-node@v4
2729 with :
28- cache : ' pnpm'
30+ cache : pnpm
2931 node-version : ${{ env.NODE_VERSION }}
30-
31- - name : Install dependencies
32- run : pnpm i --frozen-lockfile
33-
32+ - name : Install Dependencies
33+ run : pnpm install
3434 - name : Lint
3535 run : pnpm run lint
3636
37-
38- test-app :
39- name : Test app
37+ test :
38+ name : " Test"
4039 runs-on : ubuntu-latest
4140 timeout-minutes : 10
42- steps :
43- - name : Check out a copy of the repo
44- uses : actions/checkout@v4
4541
42+ steps :
43+ - uses : actions/checkout@v4
4644 - uses : pnpm/action-setup@v4
47-
48- - name : Use Node.js ${{ env.NODE_VERSION }}
49- uses : actions/setup-node@v4
45+ - uses : actions/setup-node@v4
5046 with :
51- cache : ' pnpm'
47+ cache : pnpm
5248 node-version : ${{ env.NODE_VERSION }}
53-
54- - run : pnpm install --frozen-lockfile
55-
49+ - run : pnpm install
5650 - run : pnpm run clone
57-
58- - name : Test
51+ - name : Run Tests
5952 env :
6053 PERCY_PARALLEL_NONCE : ${{ env.PERCY_PARALLEL_NONCE }}
6154 PERCY_PARALLEL_TOTAL : ${{ env.PERCY_PARALLEL_TOTAL }}
0 commit comments