run npm install in gh actions #17
Workflow file for this run
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
# 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 |