Skip to content

Add SQL test

Add SQL test #1

Workflow file for this run

name: test
on:
push:
branches:
- "*"
permissions:
contents: read
jobs:
sql:
name: sql
runs-on: ubuntu-latest
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres:14
env:
POSTGRES_PASSWORD: hackme
PGHOST: postgres
PGUSER: postgres
PGPASSWORD: hackme
PGDATABASE: test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: create test Database
run: createdb ${PGDATABASE}
- name: run SQL tests
run: ./scripts/validate_sql_files.sh content ${PGDATABASE}