feat: GitHub Action to run unit tests #6
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: Svelte Continuous Integration | |
on: | |
push: | |
pull_request: | |
jobs: | |
continuous-integration: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: 'npm' | |
- name: Clean install a project | |
run: npm ci | |
- name: Format Code | |
run: npm run format | |
- name: Check Code | |
run: npm run lint | |
- name: Test Code | |
run: npm run test |