Skip to content

Commit

Permalink
Merge pull request #91 from Percona-Lab/PSMDB_gh_workflow
Browse files Browse the repository at this point in the history
PSMDB. Run tests for all major versions
  • Loading branch information
sandraromanchenko authored Nov 13, 2024
2 parents 12b1580 + b4a8c28 commit 556eb23
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/PMM_PSMDB_PBM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ on:
description: "pmm-server docker image"
required: false

push:
branches:
- main

pull_request:
branches:
- main

jobs:
test_replica_set:
runs-on: ubuntu-22.04
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/PMM_PSMDB_PBM_FULL.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: PMM_PSMDB_PBM_FULL

on:
workflow_dispatch:
inputs:
pmm_version:
description: "pmm2-client version"
required: false
pmm_image:
description: "pmm-server docker image"
required: false

push:
branches:
- main

pull_request:
branches:
- main

jobs:
test_replica_set:
runs-on: ubuntu-22.04
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
psmdb: ["6.0", "7.0"]
env:
PMM_CLIENT_VERSION: ${{ github.event.inputs.pmm_version || 'latest' }}
PMM_IMAGE: ${{ github.event.inputs.pmm_image || 'perconalab/pmm-server:dev-latest' }}
steps:
- uses: actions/checkout@v2
- name: Test RS with PSMDB ${{ matrix.psmdb }}
run: |
PSMDB_VERSION=${{ matrix.psmdb }} ./start-rs.sh
working-directory: ./pmm_psmdb-pbm_setup

test_sharded_cluster:
runs-on: ubuntu-22.04
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
psmdb: ["6.0", "7.0"]
env:
PMM_CLIENT_VERSION: ${{ github.event.inputs.pmm_version || 'latest' }}
PMM_IMAGE: ${{ github.event.inputs.pmm_image || 'perconalab/pmm-server:dev-latest' }}
steps:
- uses: actions/checkout@v2
- name: Test sharded with PSMDB ${{ matrix.psmdb }}
run: |
PSMDB_VERSION=${{ matrix.psmdb }} ./start-sharded.sh
working-directory: ./pmm_psmdb-pbm_setup

test_diff_auth:
runs-on: ubuntu-22.04
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
psmdb: ["6.0", "7.0"]
env:
PMM_CLIENT_VERSION: ${{ github.event.inputs.pmm_version || 'latest' }}
PMM_IMAGE: ${{ github.event.inputs.pmm_image || 'perconalab/pmm-server:dev-latest' }}
steps:
- uses: actions/checkout@v3
- name: Test auth with PSMDB ${{ matrix.psmdb }}
run: |
PSMDB_VERSION=${{ matrix.psmdb }} ./test-auth.sh
working-directory: ./pmm_psmdb_diffauth_setup
2 changes: 1 addition & 1 deletion pmm_psmdb-pbm_setup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN set -ex; \
percona-release enable pmm2-client ${PMM_REPO} && \
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
yum update --refresh -y && \
if [ $PSMDB_VERSION == "latest" ]; then \
if [[ $PSMDB_VERSION == "latest" || "$PSMDB_VERSION" =~ ^[0-9]\.[0-9]$ ]] ; then \
yum -y install percona-server-mongodb \
percona-server-mongodb-tools \
percona-server-mongodb-server \
Expand Down

0 comments on commit 556eb23

Please sign in to comment.