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