Add basic tests

Run release pipeline on tags
This commit is contained in:
Jonathan Gazeley
2022-05-17 21:20:18 +01:00
parent a5d4dface8
commit ab94997dd6
3 changed files with 46 additions and 5 deletions

22
.github/workflows/test-npm.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Test UI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: ui
- run: npm run build --if-present
working-directory: ui
- run: npm test
working-directory: ui