Test with Ubuntu 24.04, remove 20.04 (#4) #251
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test this action | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- v1 | |
paths-ignore: | |
- README.md | |
schedule: | |
- cron: "0 6 * * 6" # 06:00 every Saturday | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-22.04, ubuntu-24.04 ] | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: psql --version | |
- uses: ./ | |
- run: pg_isready --dbname=$POSTGRES_URL | |
- run: psql --command='CREATE TABLE tbl()' $POSTGRES_URL | |
- run: psql --command='\d' $POSTGRES_URL | |
- run: psql --command='SELECT * FROM pg_available_extensions' $POSTGRES_URL | |
test_custom_env: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
with: | |
env-key: DATABASE_URL | |
- run: pg_isready --dbname=$DATABASE_URL | |
- run: psql --command='CREATE TABLE tbl()' $DATABASE_URL | |
- run: psql --command='\d' $DATABASE_URL | |
- run: psql --command='SELECT * FROM pg_available_extensions' $DATABASE_URL |