feat: commands testing #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |