Files
hammond/.github/workflows/test-npm.yml
Jonathan Gazeley ab94997dd6 Add basic tests
Run release pipeline on tags
2022-05-18 21:50:25 +01:00

23 lines
529 B
YAML

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