Add svelte check in pre-commit hook #1195
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: Run unit tests | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm install | |
- name: Svelte Kit Sync | |
run: npx svelte-kit sync | |
- name: Run tests | |
run: npm run test:unit |