| 1 |
name: integration_test |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- master |
| 6 |
pull_request: |
| 7 |
branches: |
| 8 |
- master |
| 9 |
|
| 10 |
jobs: |
| 11 |
integration_test: |
| 12 |
name: integration_test |
| 13 |
strategy: |
| 14 |
matrix: |
| 15 |
zk-version: [3.5.8, 3.6.1] |
| 16 |
go-version: ['oldstable', 'stable'] |
| 17 |
runs-on: ubuntu-latest |
| 18 |
steps: |
| 19 |
- name: Go ${{ matrix.go-version }} setup |
| 20 |
uses: actions/setup-go@v4 |
| 21 |
with: |
| 22 |
go-version: ${{ matrix.go-version }} |
| 23 |
|
| 24 |
- name: Setup Java 14 |
| 25 |
uses: actions/setup-java@v3 |
| 26 |
with: |
| 27 |
distribution: 'zulu' |
| 28 |
java-version: 14 |
| 29 |
|
| 30 |
- name: Checkout code |
| 31 |
uses: actions/checkout@v3 |
| 32 |
|
| 33 |
- name: Test code |
| 34 |
run: make test ZK_VERSION=${{ matrix.zk-version }} |
| 35 |
|
| 36 |
- name: Upload code coverage |
| 37 |
# only upload one result from the matrix. |
| 38 |
if: ${{ strategy.job-index == 0 }} |
| 39 |
uses: codecov/codecov-action@v4 |
| 40 |
with: |
| 41 |
token: ${{ secrets.CODECOV_TOKEN }} # required |
| 42 |
file: ./profile.cov |