-
Notifications
You must be signed in to change notification settings - Fork 121
71 lines (59 loc) · 1.68 KB
/
testflows.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
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Run testflows tests
run-name: ${{ github.actor }} is running Altinity Grafana Plugin testflows tests
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
env:
testflows_logs: |
./testflows_logs/*
code_coverage: |
./code_coverage/*
selenium_logs: |
./selenium_logs/*
jobs:
tests:
runs-on: [ self-hosted, on-demand, type-cpx41, image-x86-system-ubuntu-22.04 ]
env:
GRAFANA_ACCESS_POLICY_TOKEN: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Setup
run: tests/testflows/infra/setup.sh
- name: Run Altinity Grafana Plugin tests
run: cd ./tests/testflows/ &&
python3
-u ./regression.py --before=0.1 --after=0.1
--log raw.log
-o classic
- name: Create code coverage for backend
run: docker compose run --rm backend_coverage_generate
- name: Create code coverage for frontend
run: docker compose run --rm frontend_coverage_generate
- name: Create reports
if: always()
run: tests/testflows/infra/create-report.sh
- uses: actions/upload-artifact@v4
if: always()
with:
name: testflows-logs
path: ${{ env.testflows_logs}}
- uses: actions/upload-artifact@v4
if: always()
with:
name: code-coverage
path: ${{ env.code_coverage}}
- uses: actions/upload-artifact@v4
if: always()
with:
name: selenium-logs
path: ${{ env.selenium_logs}}