forked from debezium/debezium-connector-spanner
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.67 KB
/
ci-tests.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
## CI for Java Tests
name: CI for Tests
on:
workflow_dispatch:
# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Checkout the debezium repository
uses: actions/checkout@v4
with:
repository: debezium/debezium
path: core
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
## Add Gcp credentials by service accaunt (.json)
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Maven build debezium core
run: mvn clean install -f core/pom.xml -pl debezium-bom,debezium-core,debezium-embedded,debezium-storage -am -DskipTests -DskipITs -Dformat.formatter.goal=validate -Dformat.imports.goal=check -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
- name: Maven Package spanner connector core
run: mvn -B clean install
## Tests report
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Maven Tests Report
path: ./**/target/**/TEST-*.xml
reporter: java-junit
fail-on-error: true