-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (38 loc) · 1.08 KB
/
test_runner.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
name: Test Runner
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
TEST_HOST_URL: ${{ secrets.TEST_HOST_URL }}
TEST_DATA_UAT_USERS: ${{ secrets.TEST_DATA_UAT_USERS }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Install modules
shell: bash
run: |-
mvn clean install -DskipTests
- name: Tests
shell: bash
working-directory: ./equinix-openapi-fabric-tests
run: |-
mvn test -DenvUrl=${{ env.TEST_HOST_URL }}
- name: Generate report
if: always()
working-directory: ./equinix-openapi-fabric-tests
shell: bash
run: |-
mvn surefire-report:report -DskipTests
- name: attach report as attachment
if: always()
uses: actions/upload-artifact@v4
with:
name: test report
path: ./equinix-openapi-fabric-tests/target/reports