Adds workflow to deploy to GitHub Pages #204
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: test-and-build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: test & build - node.js | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
strategy: | |
matrix: | |
# Support LTS versions based on https://nodejs.org/en/about/releases/ | |
node-version: ['20'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci | |
- name: static checks | |
run: npm run lint | |
- name: Run automated tests | |
run: npm test | |
- name: Run vite & rollup | |
run: npm run build |