-
-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (51 loc) · 1.35 KB
/
integration-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
51
52
53
54
55
56
57
58
name: Integration Tests
on:
workflow_dispatch:
push:
branches:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
build:
name: Integration Tests
runs-on: ubuntu-latest
steps:
# SETUP BUILD ENVIRONMENT
- id: prepare-maven-build
name: Prepare Maven build
uses: sualeh/[email protected]
with:
java-version: 8
# BUILD AND TEST
- id: build-test
name: Build and run database integration tests
env:
TZ: GMT
shell: bash
run: |
# Build
mvn \
--no-transfer-progress \
--batch-mode \
-Dtestcoverage \
clean install \
org.jacoco:jacoco-maven-plugin:0.8.11:report-aggregate
# GET TEST RESULTS
- id: publish-test-results
name: Upload results and coverage
if: contains(github.ref, 'main')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
# Upload results and coverage
bash <(curl -s https://codecov.io/bash) -t 9b176264-b1dd-412b-83f4-342720a3c7eb
- id: upload-coverage-test-results
name: Upload coverage test results
uses: actions/upload-artifact@v4
with:
name: coverage-test-results
path: ./schemacrawler/target/site/jacoco-aggregate