Skip to content

Commit

Permalink
add trunk test ci
Browse files Browse the repository at this point in the history
Signed-off-by: xieydd <[email protected]>
  • Loading branch information
xieydd committed Nov 23, 2024
1 parent 5b4fd5d commit 619bf6d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/trunk-install-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Trunk install test workflow

on:
workflow_dispatch:
inputs:
version:
type: string
description: Version
required: true

jobs:
test:
name: Run tests
runs-on:
- ubuntu-latest
strategy:
matrix:
version: [14, 15, 16]
platform: ["amd64"]
container:
image: tensorchord/vchord-cnpg:${{ matrix.version }}-v${{ github.event.inputs.version }}
options: --user root
env:
PGHOST: "localhost"
PGPORT: "5432"
PGDATABASE: "postgres"
PGUSER: "postgres"
PGPASSWORD: "postgres"
POSTGRES_PASSWORD: "password"
PGDATA: "/var/lib/postgresql/data2"

steps:
- name: Install all extensions in registry
# Entrypoint is overwritten by GitHub Action. We need to execute it manually in order to start Postgres.
# More information here https://github.com/actions/runner/issues/1964
run: |
bash /usr/local/bin/docker-entrypoint.sh postgres &
sleep 5
curl https://registry.pgtrunk.io/extensions/all | jq -r ".[] | .name" > /tmp/extensions.txt
trunk-install.sh | tee /tmp/output.txt
cat /tmp/output.txt

0 comments on commit 619bf6d

Please sign in to comment.