mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-12 18:04:29 +01:00
3dd9024cc7
- appropriate job names - only trigger on pushes to master branch & PRs - conform to formatting
29 lines
No EOL
642 B
YAML
29 lines
No EOL
642 B
YAML
name: PostgreSQL + Redis CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests with PostgreSQL and Redis
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- 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
|
|
- uses: actions/setup-node@v2
|
|
- run: npm install
|
|
- name: Run Tests
|
|
env:
|
|
TEST_POSTGRES: true
|
|
timeout-minutes: 5
|
|
run: npm test |