-
Notifications
You must be signed in to change notification settings - Fork 90
64 lines (57 loc) · 1.96 KB
/
ci.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
58
59
60
61
62
63
64
name: CI
on:
workflow_dispatch:
inputs:
pbm_branch:
description: "PBM branch"
required: false
tests_ver:
description: "Tests version"
required: false
go_ver:
description: "Golang version"
required: false
pr_ver:
description: "PR version"
required: false
pull_request:
branches:
- main
paths-ignore:
- "e2e-tests/**"
- "packaging/**"
- "version/**"
jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
psmdb: ["4.2", "4.4", "5.0", "6.0"]
test: [logical, physical, incremental, external]
env:
PBM_BRANCH: ${{ github.event.inputs.pbm_branch || 'main' }}
GO_VER: ${{ github.event.inputs.go_ver || '1.19-bullseye' }}
PR_NUMBER: ${{ github.event.number|| github.event.inputs.pr_ver }}
steps:
- name: Checkout testing repo
uses: actions/checkout@v3
with:
repository: Percona-QA/psmdb-testing
ref: ${{ github.event.inputs.tests_ver || 'main'}}
path: psmdb-testing
- name: Setup environment with PSMDB ${{ matrix.psmdb }} for PBM PR/branch ${{ github.event.pull_request.title || env.PR_NUMBER || env.PBM_BRANCH }}
run: |
PSMDB=percona/percona-server-mongodb:${{ matrix.psmdb }} docker-compose build
docker-compose up -d
working-directory: psmdb-testing/pbm-functional/pytest
- name: Test ${{ matrix.test }} backup/restore on PSMDB ${{ matrix.psmdb }} for PBM PR/branch ${{ github.event.pull_request.title || env.PR_NUMBER || env.PBM_BRANCH }}
run: |
docker-compose run test pytest -s --junitxml=junit.xml -k ${{ matrix.test }}
working-directory: psmdb-testing/pbm-functional/pytest
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure()
with:
report_paths: "**/junit.xml"