-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 1.58 KB
/
CI.yaml
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
name: Continuous-Integration
on:
push:
branches:
- main
workflow_dispatch: ~
jobs:
build:
name: Build solution
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Build solution
shell: cmd
run: mvn clean install -DskipTests -Dstyle.color=always
- name: Archive build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: target/
api-tests:
name: API
runs-on: windows-latest
needs:
- build
steps:
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts
path: target/
- name: Run API tests
shell: cmd
run: mvn test -DsuiteXmlFile=TestNG.xml -Dstyle.color=always -Dcucumber.filter.tags="@API"
web-tests:
name: WEB
runs-on: windows-latest
needs:
- build
steps:
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts
path: target/
- name: Run WEB tests
shell: cmd
run: mvn test -DsuiteXmlFile=TestNG.xml -Dstyle.color=always -Dcucumber.filter.tags="@WEB"
- name: Archive test evidences
if: always()
uses: actions/upload-artifact@v4
with:
name: web-test-evidences
path: 'C:\temp\selenoid\video'