Skip to content

Commit

Permalink
Configure working dir for steps
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-ion committed Dec 22, 2024
1 parent d6d3073 commit 6d14b84
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,21 @@ jobs:
tests:
runs-on: ubuntu-latest
steps:
# Checkout the Repo
- uses: actions/checkout@v2
- name: Repo Checkout
uses: actions/checkout@v2

# Install Node 14
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14

# Install dependencies
- run: npm install
- name: Setup Portal
working-directory: ./trainingportal
run: |
npm install
config.json.docker config.json
tools/devSetup.js
# 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
- name: Run Tests
working-directory: ./trainingportal
run: npm test

0 comments on commit 6d14b84

Please sign in to comment.