forked from JDRaftKeeper/RaftKeeper
-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (28 loc) · 965 Bytes
/
integration-test.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
name: Test
on: # yamllint disable-line rule:truthy
workflow_call:
inputs:
sanitize:
required: true
type: string
jobs:
run:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download binary
uses: actions/download-artifact@v4
with:
name: raftkeeper-binary-${{ inputs.sanitize }}
path: build/programs/
- name: Add executable privileges
run: sudo chmod 755 build/programs/raftkeeper
- name: Run integration Tests
run: bash .github/workflows/run-integration-test.sh tests/integration --junitxml=integration-test-report-${{ inputs.sanitize }}.xml
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: integration-test-report-${{ inputs.sanitize }}.xml
path: tests/integration/integration-test-report-${{ inputs.sanitize }}.xml