SponsorBlockServer/.github/workflows/postgres-redis-ci.yml

29 lines
642 B
YAML
Raw Normal View History

2021-12-21 04:27:35 +01:00
name: PostgreSQL + Redis CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
2021-12-21 04:27:35 +01:00
name: Run Tests with PostgreSQL and Redis
runs-on: ubuntu-latest
steps:
2021-06-29 22:27:35 +02:00
- uses: actions/checkout@v2
- 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: Check running containers
run: docker ps
2021-06-29 22:27:35 +02:00
- uses: actions/setup-node@v2
- run: npm install
- name: Run Tests
env:
TEST_POSTGRES: true
timeout-minutes: 5
run: npm test