-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (57 loc) · 2.07 KB
/
ci.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
name: CI
on:
workflow_dispatch:
pull_request:
jobs:
Unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Granting node_modules folder required permissions
run: sudo chown -R runner /usr/local/lib/node_modules
- name: Installing dependencies
run: npm install
- name: Running linting
run: npm run lint
- name: Running static code analysis
run: npm run jshint
- name: Setting a Report Portal local reporter
run: npm run build && npm run link-pkg
- name: Running the "Live reporting" tests
run: npm run unit-tests
- name: Running the "No live reporting" tests
run: npm run unit-no-live-reporting-tests
- name: Running the "Retry mechanism" tests
run: npm run unit-retry-tests
- name: Running the "Display debug logs" tests
run: npm run unit-display-debug-logs-tests
Integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Granting node_modules folder required permissions
run: sudo chown -R runner /usr/local/lib/node_modules
- name: Installing dependencies
run: npm install
- name: Running linting
run: npm run lint
- name: Running static code analysis
run: npm run jshint
- name: Setting a Report Portal local reporter
run: npm run build && npm run link-pkg
- name: Downloading docker compose file
run: npm run download-report-portal-latest-docker-compose-file
- name: Docker version
run: docker -v
- name: Setting up a local Report Portal environment
run: sudo docker compose -f docker-compose.yml -p reportportal up -d --force-recreate
- name: Waiting for services to be up
run: ./scripts/healthcheck.bash
- name: Report Portal server status
run: npm run status
- name: Creating a .env file from existing example
run: cp .env.integration-tests.example .env
- name: Running integration tests
run: npm run integration-tests
- name: Tearing down services
run: npm run down