generated from vividus-framework/vividus-starter
-
Notifications
You must be signed in to change notification settings - Fork 318
72 lines (62 loc) · 1.75 KB
/
test-run.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
72
name: Demo Test Run
on:
workflow_dispatch:
schedule:
- cron: '30 4 * * MON-FRI'
push:
branches:
- main
paths:
- '**/rest_api/**'
- '**/web_app/**'
- '.github/workflows/test-run.yml'
pull_request:
branches:
- main
paths:
- '**/rest_api/**'
- '**/web_app/**'
- '.github/workflows/test-run.yml'
jobs:
test-run:
runs-on: ubuntu-latest
steps:
- name: Checkout (including submodules)
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache tests history
uses: actions/cache@v4
with:
save-always: true
path: output/history
key: tests-history-cache
restore-keys: |
tests-history-cache
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
cache: 'gradle'
- name: Run REST API tests
run: |
./gradlew runStories -Pvividus.configuration.suites=rest_api \
-Pvividus.allure.history-directory=output/history/rest-api-tests
- name: Publish REST API tests report
if: always()
uses: actions/upload-artifact@v4
with:
name: REST API tests report
path: output/reports/allure
- name: Run web application tests
run: |
./gradlew runStories -Pvividus.configuration.suites=web_app \
-Pvividus.configuration.profiles=web/headless/chrome \
-Pvividus.allure.history-directory=output/history/web-app-tests
- name: Publish web application tests report
if: always()
uses: actions/upload-artifact@v4
with:
name: Web application tests report
path: output/reports/allure