mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
b62db5675d
move docker-compose to new folder rename action names
28 lines
No EOL
671 B
YAML
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 |