Skip to content

Commit 6d14b84

Browse files
committed
Configure working dir for steps
1 parent d6d3073 commit 6d14b84

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,21 @@ jobs:
99
tests:
1010
runs-on: ubuntu-latest
1111
steps:
12-
# Checkout the Repo
13-
- uses: actions/checkout@v2
12+
- name: Repo Checkout
13+
uses: actions/checkout@v2
1414

15-
# Install Node 14
1615
- name: Setup Node
1716
uses: actions/setup-node@v1
1817
with:
1918
node-version: 14
2019

21-
# Install dependencies
22-
- run: npm install
20+
- name: Setup Portal
21+
working-directory: ./trainingportal
22+
run: |
23+
npm install
24+
config.json.docker config.json
25+
tools/devSetup.js
2326
24-
# Setup config
25-
- run: cd trainingportal
26-
- run: cp config.json.docker config.json
27-
28-
# Setup local database and local user
29-
- run: tools/devSetup.js
30-
31-
# Run tests
32-
- run: npm test
27+
- name: Run Tests
28+
working-directory: ./trainingportal
29+
run: npm test

0 commit comments

Comments
 (0)