Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Update compose file and CI workflow #2

Update compose file and CI workflow

Update compose file and CI workflow #2

Workflow file for this run

name: Test libms queries
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Docker
uses: docker-practice/actions-setup-docker@v1
- name: Docker Compose up
run: docker-compose up -d db
- name: Install PostgreSQL client
run: sudo apt-get -yqq install postgresql-client
# Wait for PostgreSQL to initialize
- name: Wait for PostgreSQL
run: sleep 30
- name: Run SQL script against PostgreSQL
run: PGPASSWORD=password psql -h localhost -U libms -d libms -a -f libms.sql