Skip to content

fix: leak conflict (#174) #369

fix: leak conflict (#174)

fix: leak conflict (#174) #369

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validations:
runs-on: ubuntu-latest
services: # We use GH services because we cannot mount a volume as we do in the docker-compose
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: quests_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v1
- uses: actions/checkout@v2
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: false
shared-key: main
key: build
- name: Run tests
run: cargo test --verbose
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/quests_db
REDIS_URL: localhost:6379