Change directory to training portal for tests #3
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: "Training Portal Tests" | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the Repo | |
- uses: actions/checkout@v2 | |
# Install Node 14 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
# Install dependencies | |
- run: npm install | |
# Setup config | |
- run: cd trainingportal | |
- run: cp config.json.docker config.json | |
# Setup local database and local user | |
- run: tools/devSetup.js | |
# Run tests | |
- run: npm test |