-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (56 loc) · 1.63 KB
/
Tests.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Test build and linting
on: [pull_request]
jobs:
lint-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: npm install
working-directory: ./pipeline-ui/backend
run: npm install
- name: Lint
working-directory: ./pipeline-ui/backend
run: npm run lint
lint-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: npm install
working-directory: ./pipeline-ui/frontend
run: npm install
- name: Lint
working-directory: ./pipeline-ui/frontend
run: npm run lint
integration-and-unit-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Start containers
run: docker-compose -f "docker-compose.yml" up -d --build
- name: npm install
working-directory: ./pipeline-ui/integration-tests
run: npm install
- name: Cypress run
uses: cypress-io/github-action@v4
with:
working-directory: pipeline-ui/integration-tests
wait-on: 'http://localhost:8080'
- name: npm install
working-directory: logstash/tests
run: npm install
- name: Run tests
working-directory: logstash/tests
run: npm run test
- name: Stop containers
if: always()
run: docker-compose -f "docker-compose.yml" down