Skip to content

Commit

Permalink
Add the PostgreSQL service, and matrix for Java and PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikurube committed Jul 12, 2024
1 parent 2959744 commit 68f848f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/input-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@ on:
- cron: "0 18 * * *" # 3am in Asia/Tokyo
jobs:
input-with-postgresql:
runs-on: ubuntu-latest
# push: always run.
# pull_request: run only when the PR is submitted from a forked repository, not within this repository.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
strategy:
java: [ 8, 11, 17, 21 ]
postgres: [ "postgres:12", "postgres:13", "postgres:14", "postgres:15", "postgres:16" ]
services:
postgres:
image: ${{ matrix.postgres }}
ports:
- "5432:5432"
env:
POSTGRES_PASSWORD: postgres
strategy:
fail-fast: false
steps:
Expand All @@ -18,7 +28,7 @@ jobs:
- name: Set up OpenJDK 8
uses: actions/setup-java@v4
with:
java-version: 8
java-version: ${{ matrix.java }}
distribution: "temurin"

- name: Download Embulk
Expand Down

0 comments on commit 68f848f

Please sign in to comment.