Skip to content

Add the PostgreSQL service, and matrix for Java and PostgreSQL #33

Add the PostgreSQL service, and matrix for Java and PostgreSQL

Add the PostgreSQL service, and matrix for Java and PostgreSQL #33

name: Input with PostgreSQL
on:
pull_request:
push:
schedule:
- cron: "0 18 * * *" # 3am in Asia/Tokyo
jobs:
input-with-postgresql:
# 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

Check failure on line 11 in .github/workflows/input-postgresql.yml

View workflow run for this annotation

GitHub Actions / Input with PostgreSQL

Invalid workflow file

The workflow is not valid. .github/workflows/input-postgresql.yml (Line: 11, Col: 9): Unexpected symbol: '"push"'. Located at position 22 within expression: github.event_name == "push" || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
java: [ 8, 11, 17, 21 ]
postgres: [ "postgres:12", "postgres:13", "postgres:14", "postgres:15", "postgres:16" ]
runs-on: ubuntu-latest
services:
postgres:
image: ${{ matrix.postgres }}
ports:
- "5432:5432"
env:
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v4
- name: Set up OpenJDK 8
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: "temurin"
- name: Download Embulk
uses: ./.github/actions/install-embulk
- name: List files
run: ls -la