Skip to content

Commit 83e43e4

Browse files
committed
ci: 👷 update CI to use cache
include spelling check
1 parent 05bb911 commit 83e43e4

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

.github/workflows/unit-test.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
11
name: 'Tests: Unit'
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
types: [opened, synchronize]
8+
59
jobs:
6-
unit_tests:
10+
unit-tests:
711
name: Run unit tests
812
runs-on: ubuntu-latest
13+
914
steps:
15+
- uses: actions/cache@v3
16+
with:
17+
path: ~/.pnpm-store
18+
key:
19+
${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
20+
restore-keys: |
21+
${{ runner.os }}-pnpm-
22+
- uses: actions/checkout@v3
1023
- uses: pnpm/[email protected]
1124
with:
1225
version: 6.0.2
13-
- uses: actions/checkout@v3
1426
- uses: actions/setup-node@v3
15-
- name: Install pnpm
16-
run: pnpm i
27+
with:
28+
node-version: 18.x
29+
- name: Install dependencies
30+
run: pnpm install
1731
- name: Build
1832
run: pnpm run build
1933
env:
2034
PUBLIC_FATHOM_ID: ${{ secrets.PUBLIC_FATHOM_ID }}
2135
PUBLIC_FATHOM_URL: ${{ secrets.PUBLIC_FATHOM_URL }}
2236
- name: Test
2337
run: pnpm run test:ci
38+
- name: Check spelling
39+
run: pnpm run cspell

0 commit comments

Comments
 (0)