Run Tests #216
Workflow file for this run
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: Run Tests | |
permissions: {} | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
run_tests: | |
name: Run test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
# PG_VERSION: [15, 16, 17, 18] | |
PG_VERSION: [15] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set environment variables | |
run: echo "PG_VERSION=${{ matrix.PG_VERSION }}" >> $GITHUB_ENV | |
- name: Add gcc problem matcher | |
run: echo "::add-matcher::matcher.json" | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Cache register | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }} | |
- name: Build Docker Test Image | |
uses: docker/build-push-action@v6 | |
with: | |
load: true | |
build-args: "PG_VERSION=${{ matrix.PG_VERSION }}" | |
builder: ${{ steps.buildx.outputs.name }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache | |
tags: pg_tracing_test:${{ matrix.PG_VERSION }} | |
# - name: Build Docker Test Image | |
# run: make build-test-image | |
# - name: Check pgindent | |
# # pgindent is only available starting PG 17 | |
# if: ${{ matrix.PG_VERSION > 16 }} | |
# run: make run-pgindent-diff | |
- name: Run Test | |
timeout-minutes: 1 | |
run: make run-test |