update build files #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, workflow_dispatch] | |
jobs: | |
build: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add files | |
uses: actions/checkout@v4 | |
- name: Cache dependencies | |
id: dep-cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
~/.cache/puppeteer | |
key: tests-dependencies-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
if: steps.dep-cache.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Build files | |
run: npm run build | |
- name: Run tests | |
run: npm run test:all |