Skip to content

Update GHA

Update GHA #7

Workflow file for this run

name: test snapshot
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
PG_SNAPSHOT_VERSION: "17"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file docker/Dockerfile --tag "pgxtest:snapshot" --build-arg "PGVERSION=${{ env.PG_SNAPSHOT_VERSION }}" --build-arg "PGCHANNEL=bullseye-pgdg-snapshot"
- name: Test
run: docker run --rm -v `pwd`:/workspace "pgxtest:snapshot" /test.sh