Skip to content

Commit

Permalink
actions: run extensions tests in CI (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrmiguel authored Dec 13, 2023
1 parent 91125c6 commit 6105840
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,38 @@ jobs:
changed_relative_to_ref: ${{ steps.versions.outputs.changed_relative_to_ref }}
ignore_dirs: ".tembo cli"

test:
name: Test extensions
runs-on:
- self-hosted
- dind
- large-8x8
container:
image: quay.io/tembo/trunk-test-tembo:0.0.27
options: --user root
needs:
- find_directories
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.find_directories.outputs.directories) }}
steps:
- uses: actions/[email protected]
- name: Install system dependencies
run: |
set -xe
apt-get update
apt-get install -y pkg-config libssl-dev gosu
- name: Test the extension within Docker
run: cd ${{ matrix.path }} && trunk build --test

build:
name: Build extensions
runs-on:
- self-hosted
- dind
- large-8x8
container:
image: quay.io/tembo/trunk-test-tembo:0.0.26
image: quay.io/tembo/trunk-test-tembo:0.0.27
options: --user root
needs:
- find_directories
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trunk-install-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- dind
- large-8x8
container:
image: quay.io/tembo/trunk-test-tembo:0.0.26
image: quay.io/tembo/trunk-test-tembo:0.0.27
options: --user root
env:
PGHOST: "localhost"
Expand Down
2 changes: 1 addition & 1 deletion images/trunk-test-tembo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/tembo/tembo-pg-cnpg:15.3.0-5-57d5ce4
FROM quay.io/tembo/tembo-pg-cnpg:15.3.0-5-c9fde12

USER root
RUN apt-get update && apt-get install -y \
Expand Down

0 comments on commit 6105840

Please sign in to comment.