0
0
Fork 0
mirror of https://github.com/tj-actions/install-postgresql.git synced 2024-12-20 01:18:18 +00:00
install-postgresql/.github/workflows/test.yml
renovate[bot] da6c83b948
Some checks failed
CI / Run shellcheck (push) Failing after 1s
CI / Test setup-postgresql (ubuntu-latest, 12) (push) Failing after 0s
CI / Test setup-postgresql (ubuntu-latest, 14) (push) Failing after 1s
CI / Test setup-postgresql (ubuntu-latest, 15) (push) Failing after 1s
CI / Test setup-postgresql (ubuntu-latest, 16) (push) Failing after 1s
Format README.md / sync-assets (push) Failing after 1s
CI / Test setup-postgresql (macos-latest, 12) (push) Has been cancelled
CI / Test setup-postgresql (macos-latest, 14) (push) Has been cancelled
CI / Test setup-postgresql (macos-latest, 15) (push) Has been cancelled
CI / Test setup-postgresql (macos-latest, 16) (push) Has been cancelled
CI / Test setup-postgresql (windows-latest, 12) (push) Has been cancelled
CI / Test setup-postgresql (windows-latest, 14) (push) Has been cancelled
CI / Test setup-postgresql (windows-latest, 15) (push) Has been cancelled
CI / Test setup-postgresql (windows-latest, 16) (push) Has been cancelled
chore(deps): update reviewdog/action-shellcheck action to v1.27
2024-09-16 04:01:34 +00:00

42 lines
1.1 KiB
YAML

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
shellcheck:
name: Run shellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout to branch
uses: actions/checkout@v4
- name: shellcheck
uses: reviewdog/action-shellcheck@v1.27
test:
name: Test setup-postgresql
runs-on: ${{ matrix.platform }}
concurrency: ${{ matrix.platform }}-${{ matrix.postgresql_version }}-${{ github.ref }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
postgresql_version: [12, 14, 15, 16]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run setup-postgresql
uses: ./
with:
postgresql-version: ${{ matrix.postgresql_version }}
- name: Verify PostgreSQL
run: |
pg_dump --version | grep -q "pg_dump (PostgreSQL) ${{ matrix.postgresql_version }}.*"
psql --version | grep -q "psql (PostgreSQL) ${{ matrix.postgresql_version }}.*"
pg_restore --version | grep -q "pg_restore (PostgreSQL) ${{ matrix.postgresql_version }}.*"