-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (36 loc) · 1.1 KB
/
main.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
name: build
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build-main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Setup Testcontainers Cloud Client
uses: atomicjar/testcontainers-cloud-setup-action@v1
with:
token: ${{ secrets.TC_CLOUD_TOKEN }}
- name: Build and test Celesta
run: mvn verify -P dev -pl !celesta-documentation
- name: Publish test report
uses: dorny/test-reporter@v1
if: (success() || failure()) && github.actor != 'dependabot[bot]'
with:
name: Test report
path: '**/surefire-reports/**/*.xml'
reporter: java-junit
- name: Publish test coverage
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: test-coverage
path: coverage-report/target/site/jacoco-aggregate