This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
Update compose file and CI workflow #2
Workflow file for this run
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 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 |