@@ -3,59 +3,52 @@ name: CI
3
3
on :
4
4
push :
5
5
branches :
6
+ - main
6
7
- master
7
- pull_request :
8
+ pull_request : {}
8
9
9
10
env :
10
11
NODE_VERSION : 20
11
12
PERCY_PARALLEL_NONCE : ${{ github.run_id }}-${{ github.run_number }}
12
13
PERCY_PARALLEL_TOTAL : 1
13
14
15
+ concurrency :
16
+ group : ci-${{ github.head_ref || github.ref }}
17
+ cancel-in-progress : true
18
+
14
19
jobs :
15
20
lint :
16
- name : Lint files
21
+ name : " Lint"
17
22
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
22
24
25
+ steps :
26
+ - uses : actions/checkout@v4
23
27
- 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
27
29
with :
28
- cache : ' pnpm'
30
+ cache : pnpm
29
31
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
34
34
- name : Lint
35
35
run : pnpm run lint
36
36
37
-
38
- test-app :
39
- name : Test app
37
+ test :
38
+ name : " Test"
40
39
runs-on : ubuntu-latest
41
40
timeout-minutes : 10
42
- steps :
43
- - name : Check out a copy of the repo
44
- uses : actions/checkout@v4
45
41
42
+ steps :
43
+ - uses : actions/checkout@v4
46
44
- 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
50
46
with :
51
- cache : ' pnpm'
47
+ cache : pnpm
52
48
node-version : ${{ env.NODE_VERSION }}
53
-
54
- - run : pnpm install --frozen-lockfile
55
-
49
+ - run : pnpm install
56
50
- run : pnpm run clone
57
-
58
- - name : Test
51
+ - name : Run Tests
59
52
env :
60
53
PERCY_PARALLEL_NONCE : ${{ env.PERCY_PARALLEL_NONCE }}
61
54
PERCY_PARALLEL_TOTAL : ${{ env.PERCY_PARALLEL_TOTAL }}
0 commit comments