Skip to content

Test this action

Test this action #254

Workflow file for this run

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