-
Notifications
You must be signed in to change notification settings - Fork 156
57 lines (54 loc) · 1.73 KB
/
audit.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
name: Integration - Audit
on:
pull_request:
paths-ignore:
- '**.md'
- 'docs/**'
- 'demo/**'
- '.github/workflows/site.yml'
- '.github/workflows/release.yml'
jobs:
e2e-audit:
runs-on: ubuntu-latest
if: "!contains(github.event.pull_request.labels.*.name, 'ci-skip')"
strategy:
matrix:
java: [ '11' ]
audit: [ 'kafka' ]
fail-fast: false
steps:
- name: Checkout source code
uses: actions/[email protected]
- name: Set up java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Setup prerequisites
env:
WORKSPACE: ${{ github.workspace }}
run: bash build/audit/bin/setup-prerequisites.sh ${{matrix.audit}}
- name: Server Integration Tests - Audit
env:
WORKSPACE: ${{ github.workspace }}
# fail-fast behavior is set when `shell: bash` is explicitly specified. It is not applied by default.
shell: bash
run: |
bash build/audit/bin/pre-integration-test.sh ${{matrix.audit}}
bash build/audit/bin/integration-test.sh ${{matrix.audit}}
bash build/audit/bin/post-integration-test.sh ${{matrix.audit}}
- name: Gather error logs
if: failure()
env:
WORKSPACE: ${{ github.workspace }}
run: bash build/audit/bin/gather-logs.sh ${{matrix.audit}}
- name: Upload logs
if: always()
uses: actions/[email protected]
with:
name: integration-test-results-${{ matrix.audit }}-${{ matrix.java }}
path: build/audit/integration-test-results
concurrency:
group: audit-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true