Skip to content

PBM

PBM #36

Workflow file for this run

name: PBM
on:
workflow_dispatch:
inputs:
psmdb:
description: "psmdb docker image"
required: false
pbm_branch:
description: "pbm branch"
required: false
go_ver:
description: "golang version"
required: false
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
test: [logical, physical, incremental]
env:
PSMDB: ${{ github.event.inputs.psmdb || 'percona/percona-server-mongodb:4.4' }}
PBM_BRANCH: ${{ github.event.inputs.pbm_branch || 'main' }}
GO_VER: ${{ github.event.inputs.go_ver || 'latest' }}
steps:
- uses: actions/checkout@v2
- name: Setup environment with PSMDB ${{ env.PSMDB }} and PBM branch ${{ env.PBM_BRANCH }}
run: |
docker-compose build
docker-compose up -d
working-directory: ./pbm-functional/pytest
- name: Test ${{ matrix.test }} backup/restore on PSMDB ${{ env.PSMDB }} PBM branch ${{ env.PBM_BRANCH }}
run: |
docker-compose run --rm test pytest -s --junitxml=junit.xml -k ${{ matrix.test }}
working-directory: ./pbm-functional/pytest
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure()
with:
report_paths: '**/junit.xml'