Skip to content

run npm install in gh actions #17

run npm install in gh actions

run npm install in gh actions #17

# Workflow to run backend/controller tests
name: Run Controller Tests
# Runs on push to any branch
on:
push:
# Runs on pull request to master branch
pull_request:
branches:
- master
# Workflow can be triggered manually from the Actions tab
workflow_dispatch:
jobs:
# Run backend tests
backend_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Run backend tests
run: |
npm install
npm run test -- controller/tests/
timeout-minutes: 1