File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments