mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
da92f2082d
uses env flag TEST_POSTGRES since the sqlite test also runs with env flag CI true
27 lines
No EOL
605 B
YAML
27 lines
No EOL
605 B
YAML
name: Docker Image CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
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 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 |