Skip to content

feat: commands testing #1

feat: commands testing

feat: commands testing #1

Workflow file for this run

name: Command Tests
on:
push:
paths:
- ".github/workflows/command-tests.yml"
- "pasarguard.sh"
- "pg-node.sh"
- "lib/**"
- "tests/test_pasarguard_commands.sh"
- "tests/test_pgnode_commands.sh"
pull_request:
paths:
- ".github/workflows/command-tests.yml"
- "pasarguard.sh"
- "pg-node.sh"
- "lib/**"
- "tests/test_pasarguard_commands.sh"
- "tests/test_pgnode_commands.sh"
workflow_dispatch:
jobs:
pasarguard-commands:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
database: [sqlite, mysql, mariadb, postgresql, timescaledb]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl jq
- name: Run pasarguard command tests (${{ matrix.database }})
run: bash tests/test_pasarguard_commands.sh "${{ matrix.database }}"
pgnode-commands:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl jq openssl
- name: Run pg-node command tests
run: bash tests/test_pgnode_commands.sh