34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
name: postgresql-14-pmm-integration
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build:
|
|
name: pg-14-pgsm-pmm-integration-test
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- name: Clone QA Integration repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: 'Percona-Lab/qa-integration'
|
|
ref: 'main'
|
|
|
|
# print branch and Repo name
|
|
- name: Get branch and Repo Name
|
|
run: echo 'The branch and Repo Name is' ${{ github.head_ref }} ${{ github.actor }}/pg_stat_monitor
|
|
|
|
- name: Run PMM & PGSM Setup, E2E Tests
|
|
run: bash -xe ./pmm_pgsm_setup/pmm_pgsm_setup.sh --pgsql-version=14 --pgstat-monitor-branch=${{ github.head_ref }} --pgstat-monitor-repo=${{ github.actor }}/pg_stat_monitor
|
|
|
|
- name: Get PMM-Agent Logs from the Container
|
|
if: success() || failure() # run this step even if previous step failed
|
|
run: docker exec pgsql_pgsm_14 cat pmm-agent.log > ./pmm-ui-tests/tests/output/pmm-agent.log
|
|
|
|
- name: Upload Tests Artifacts
|
|
uses: actions/upload-artifact@v3
|
|
if: success() || failure() # run this step even if previous step failed
|
|
with:
|
|
name: tests-artifact
|
|
path: ./pmm-ui-tests/tests/output/
|
|
if-no-files-found: ignore # 'warn' or 'ignore' are also available, defaults to `warn`
|