-
Notifications
You must be signed in to change notification settings - Fork 157
55 lines (52 loc) · 1.73 KB
/
persistence.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
name: Integration - Persistence
on:
pull_request:
paths-ignore:
- '**.md'
- 'docs/**'
- 'demo/**'
- '.github/workflows/site.yml'
- '.github/workflows/release.yml'
jobs:
e2e-persistence:
runs-on: ubuntu-latest
if: "!contains(github.event.pull_request.labels.*.name, 'ci-skip')"
strategy:
matrix:
java: [ '11' ]
persistence: [ 'postgres' ]
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/persistence/bin/setup-prerequisites.sh ${{matrix.persistence}}
- name: Server Integration Tests - Additional Persistence Layers
env:
WORKSPACE: ${{ github.workspace }}
run: |
bash build/persistence/bin/pre-integration-test.sh ${{matrix.persistence}}
bash build/persistence/bin/integration-test.sh ${{matrix.persistence}}
bash build/persistence/bin/post-integration-test.sh ${{matrix.persistence}}
- name: Gather error logs
if: failure()
env:
WORKSPACE: ${{ github.workspace }}
run: bash build/persistence/bin/gather-logs.sh ${{matrix.persistence}}
- name: Upload logs
if: always()
uses: actions/[email protected]
with:
name: integration-test-results-${{ matrix.persistence }}-${{ matrix.java }}
path: build/persistence/integration-test-results
concurrency:
group: persistence-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true