-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (60 loc) · 1.58 KB
/
verify.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
name: Verify
on:
push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Java
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
- name: Run unit tests
run: ./gradlew test
- name: Upload the JUnit test report (visible in the Artifacts section on Summary page)
uses: actions/upload-artifact@v4
if: failure()
with:
name: JUnit-test-report
path: build/reports/tests/test
retention-days: 5
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Java
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
- name: Run lint check
run: ./gradlew ktlintCheck
e2e-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Java
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
- name: Run Datadog synthetic test
env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_APP_KEY: ${{ secrets.DD_APP_KEY }}
run: ./gradlew e2eTest --stacktrace
- name: Upload the E2E test report (visible in the Artifacts section on Summary page)
uses: actions/upload-artifact@v4
if: failure()
with:
name: E2E-test-report
path: build/reports/tests/e2eTest
retention-days: 5