SponsorBlockServer/.github/workflows/postgres-ci.yml
Michael C b62db5675d
update CI names and path
move docker-compose to new folder
rename action names
2021-06-23 15:48:02 -04:00

28 lines
No EOL
671 B
YAML

name: PostgreSQL CI
on: [push, pull_request]
jobs:
build:
name: Run Tests with PostgreSQL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the docker-compose stack
env:
PG_USER: ci_db_user
PG_PASS: ci_db_pass
run: docker-compose -f docker/docker-compose-ci.yml up -d
- name: Sleep
uses: jakejarvis/wait-action@master
with:
time: '10s'
- name: Check running containers
run: docker ps
- uses: actions/setup-node@v1
- run: npm install
- name: Run test suite
env:
TEST_POSTGRES: true
run: npm test