Skip to content

Commit ca9986e

Browse files
committed
Add building test
It was not tested before. If it works, the deploy works (hopefully).
1 parent d0478e5 commit ca9986e

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,29 @@ jobs:
3636
- name: Run Prettier
3737
if: ${{ !cancelled() }}
3838
run: npx prettier --check .
39+
test:
40+
name: Test building
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout code
44+
uses: actions/checkout@v6
45+
- name: Setup Node.js
46+
uses: actions/setup-node@v6
47+
with:
48+
node-version: 18
49+
- name: Get npm cache directory
50+
id: npm-cache-dir
51+
shell: bash
52+
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
53+
- name: Cache dependencies
54+
uses: actions/cache@v5
55+
with:
56+
path: ${{ steps.npm-cache-dir.outputs.dir }}
57+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
58+
restore-keys: |
59+
${{ runner.os }}-node-
60+
- name: Install dependencies
61+
run: npm ci
62+
- name: Test building
63+
if: ${{ !cancelled() }}
64+
run: npm run build

0 commit comments

Comments
 (0)