Skip to content

Commit 573c7d7

Browse files
committed
CI/Frontend: Split into lint and test jobs
1 parent d6a678a commit 573c7d7

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

.github/workflows/ci-frontend.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,31 @@ env:
1212
PNPM_VERSION: 7.17.1
1313

1414
jobs:
15-
lint-and-test:
15+
lint:
16+
runs-on: ubuntu-20.04
17+
18+
steps:
19+
- uses: actions/checkout@v3.1.0
20+
21+
- uses: pnpm/action-setup@v2.2.4
22+
with:
23+
version: ${{ env.PNPM_VERSION }}
24+
25+
- uses: actions/setup-node@v3.5.1
26+
with:
27+
cache: pnpm
28+
node-version-file: package.json
29+
30+
- name: Install node modules
31+
run: pnpm install
32+
33+
- name: Lint
34+
run: |
35+
pnpm lint:hbs
36+
pnpm lint:js
37+
pnpm lint:deps
38+
39+
test:
1640
runs-on: ubuntu-20.04
1741
env:
1842
JOBS: 1 # See https://git.io/vdao3 for details.
@@ -37,12 +61,6 @@ jobs:
3761
- name: Install node modules
3862
run: pnpm install
3963

40-
- name: Lint
41-
run: |
42-
pnpm lint:hbs
43-
pnpm lint:js
44-
pnpm lint:deps
45-
4664
- name: Run percy exec
4765
if: github.repository == 'rust-lang/crates.io'
4866
run: pnpm percy exec -- pnpm test-coverage

0 commit comments

Comments
 (0)