File tree Expand file tree Collapse file tree 2 files changed +56
-48
lines changed Expand file tree Collapse file tree 2 files changed +56
-48
lines changed Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : CI / Backend
2
2
3
3
on :
4
4
push :
5
5
branches :
6
- - auto
6
+ - main
7
7
- master
8
- - try
9
8
10
9
pull_request :
11
10
12
11
env :
13
12
DIESEL_CLI_VERSION : 1.4.1
14
- PNPM_VERSION : 7.17.1
15
13
RUST_VERSION : 1.65.0
16
14
17
15
jobs :
18
- frontend :
19
- name : Frontend
20
- runs-on : ubuntu-20.04
21
- env :
22
- JOBS : 1 # See https://git.io/vdao3 for details.
23
-
24
- # Percy secrets are included here to enable Percy's GitHub integration
25
- # on community-submitted PRs
26
- PERCY_TOKEN : 0d8707a02b19aebbec79bb0bf302b8d2fa95edb33169cfe41b084289596670b1
27
- PERCY_PROJECT : crates-io/crates.io
28
-
29
- steps :
30
- - uses : actions/checkout@v3.1.0
31
-
32
- - uses : pnpm/action-setup@v2.2.4
33
- with :
34
- version : ${{ env.PNPM_VERSION }}
35
-
36
- - uses : actions/setup-node@v3.5.1
37
- with :
38
- cache : pnpm
39
- node-version-file : package.json
40
-
41
- - name : Install node modules
42
- run : pnpm install
43
-
44
- - name : Lint
45
- run : |
46
- pnpm lint:hbs
47
- pnpm lint:js
48
- pnpm lint:deps
49
-
50
- - name : Run percy exec
51
- if : github.repository == 'rust-lang/crates.io'
52
- run : pnpm percy exec -- pnpm test-coverage
53
-
54
- - name : test-coverage
55
- if : github.repository != 'rust-lang/crates.io'
56
- run : pnpm test-coverage
57
-
58
- backend-lint :
59
- name : Backend (linting)
16
+ lint :
60
17
runs-on : ubuntu-20.04
61
18
62
19
env :
74
31
- run : cargo fmt --check
75
32
- run : cargo clippy --all-targets --all-features --all
76
33
77
- backend :
78
- name : Backend
34
+ test :
79
35
runs-on : ubuntu-20.04
80
36
81
37
env :
Original file line number Diff line number Diff line change
1
+ name : CI / Frontend
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - master
8
+
9
+ pull_request :
10
+
11
+ env :
12
+ PNPM_VERSION : 7.17.1
13
+
14
+ jobs :
15
+ lint-and-test :
16
+ runs-on : ubuntu-20.04
17
+ env :
18
+ JOBS : 1 # See https://git.io/vdao3 for details.
19
+
20
+ # Percy secrets are included here to enable Percy's GitHub integration
21
+ # on community-submitted PRs
22
+ PERCY_TOKEN : 0d8707a02b19aebbec79bb0bf302b8d2fa95edb33169cfe41b084289596670b1
23
+ PERCY_PROJECT : crates-io/crates.io
24
+
25
+ steps :
26
+ - uses : actions/checkout@v3.1.0
27
+
28
+ - uses : pnpm/action-setup@v2.2.4
29
+ with :
30
+ version : ${{ env.PNPM_VERSION }}
31
+
32
+ - uses : actions/setup-node@v3.5.1
33
+ with :
34
+ cache : pnpm
35
+ node-version-file : package.json
36
+
37
+ - name : Install node modules
38
+ run : pnpm install
39
+
40
+ - name : Lint
41
+ run : |
42
+ pnpm lint:hbs
43
+ pnpm lint:js
44
+ pnpm lint:deps
45
+
46
+ - name : Run percy exec
47
+ if : github.repository == 'rust-lang/crates.io'
48
+ run : pnpm percy exec -- pnpm test-coverage
49
+
50
+ - name : test-coverage
51
+ if : github.repository != 'rust-lang/crates.io'
52
+ run : pnpm test-coverage
You can’t perform that action at this time.
0 commit comments