test on multiple postgres versions #101
This file contains 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: tests | |
on: | |
pull_request: | |
push: { branches: [master] } | |
jobs: | |
test: | |
name: Run tests | |
strategy: | |
matrix: | |
postgres: [14, 15, 16, 17] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build docker images | |
run: PG_VERSION=${{ matrix.postgres }} docker compose -f .ci/docker-compose.yaml build | |
- name: Run tests | |
run: PG_VERSION=${{ matrix.postgres }} docker compose -f .ci/docker-compose.yaml run test_pg_jsonschema |