Skip to content

Commit

Permalink
Create postgres.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
julianladisch committed Nov 25, 2023
1 parent ffaf2bd commit 1ee7551
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: postgres
on:
workflow_dispatch:
inputs:
postgres:
description: "List of postgres containers, injected as TESTCONTAINERS_POSTGRES_IMAGE"
default: '["postgres:13-alpine", "postgres:15-alpine"]'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
postgres: ${{ fromJSON(github.event.inputs.postgres) }}
fail-fast: false
env:
TESTCONTAINERS_POSTGRES_IMAGE: ${{ matrix.postgres }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: maven
- run: find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s/postgres:12-alpine/$TESTCONTAINERS_POSTGRES_IMAGE/g"
- run: mvn --batch-mode verify

0 comments on commit 1ee7551

Please sign in to comment.