Skip to content

Merge pull request #81 from flashburst/fix/calc #76

Merge pull request #81 from flashburst/fix/calc

Merge pull request #81 from flashburst/fix/calc #76

Workflow file for this run

name: SQL Integrity
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-sql-syntax:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Validate SQL
run: |
sudo apt-get update
sudo apt-get install -y postgresql-client
psql -h localhost -U postgres -d postgres -v ON_ERROR_STOP=1 -a -f build/db.sql
env:
PGPASSWORD: postgres