mirror of
https://github.com/tj-actions/install-postgresql.git
synced 2024-12-20 01:18:18 +00:00
41 lines
920 B
YAML
41 lines
920 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]
|
|
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
|