Add CI workflow #3
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: Continuous integration | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
checks: | |
name: Run checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Svelte check | |
run: npm run check | |
- name: Lint | |
run: npm run lint | |
# Disabled while there are no unit tests | |
# - name: Unit tests | |
# run: npm run test:unit | |
- name: Build | |
run: npm run build | |
# Disabled while there are no e2e tests | |
# tests_e2e: | |
# name: Run end-to-end tests | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-node@v4 | |
# with: | |
# node-version: 20 | |
# cache: npm | |
# - name: Install dependencies | |
# run: npm ci | |
# - name: Install playwright browsers | |
# run: npx playwright install --with-deps | |
# - name: Run tests | |
# run: npx playwright test |