-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.46 KB
/
verify-mssql.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
name: 'MS SQL Server Linux tests'
on:
push:
branches: [ master ]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release' ) && format('ci-master-{0}', github.sha) || format('ci-master-{0}', github.ref) }}
cancel-in-progress: true
jobs:
build:
name: "MS SQL ${{ matrix.mssql }} / Java ${{ matrix.java }}"
runs-on: [ ubuntu-latest ]
strategy:
matrix:
mssql: [ 2019-latest, 2022-latest ]
java: [ 11 ]
java_dist: [ 'zulu' ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5
- name: 'Set up JDK'
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.java_dist }}
cache: 'maven'
- name: "Setup test environment for MS SQL ${{ matrix.mssql }}"
run: |
./.build/ci/mssql-start.sh ${{ matrix.mssql }}
./.build/ci/mssql-setup.sh
- name: 'Priming build'
run: mvn install -Dmaven.test.skip=true -B -V -e -fae -q -Pmssql
- name: "Test ${{ matrix.mssql }}"
run: mvn -e test -B -Pmssql
- name: "Verify ${{ matrix.mssql }}"
run: mvn -e verify -B -Pmssql -T1 -Dtest.onlyITs=true
- name: 'Clean artifacts from repository'
run: mvn clean build-helper:remove-project-artifact
- name: 'Upload codecoverage'
uses: codecov/codecov-action@v4