-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.14 KB
/
CI.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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Generate Java classes
run: ./generate.sh
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build
run: mvn --batch-mode -DskipTests package --file src/pom.xml
- name: Load version into generated .properties file.
run: mvn resources:resources --file src/pom.xml
- name: Test
run: mvn --batch-mode -Dmaven.test.failure.ignore=true test --file src/pom.xml
env:
DATASET_ID: ${{secrets.INTEGRATIONTESTS_DATASET_ID}}
API_KEY: ${{secrets.INTEGRATIONTESTS_API_KEY}}
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Maven Tests
path: src/target/surefire-reports/*.xml
reporter: java-junit
fail-on-error: true