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
2023-09-11 20:55:58 -06:00

41 lines
934 B
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.19
test:
name: Test setup-postgresql
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, ubuntu-20.04, macos-latest, macos-11, macos-13, windows-latest, windows-2019]
postgresql_version: [10, 11, 12, 14, 15]
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
psql --version
pg_restore --version