-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (38 loc) · 972 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Test
on: [push]
jobs:
unit:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Mediator unit tests
working-directory: ./mediator
run: |
npm install
npm run unit-test
e2e-tests:
name: E2E Tests
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install configurator
working-directory: ./configurator
run: |
npm install
- name: Mediator e2e tests
working-directory: ./mediator
run: |
npm install
npm run e2e-test