Skip to content

Merge pull request #613 from zvonimirr/dependabot/hex/postgrex-0.19.2 #475

Merge pull request #613 from zvonimirr/dependabot/hex/postgrex-0.19.2

Merge pull request #613 from zvonimirr/dependabot/hex/postgrex-0.19.2 #475

Workflow file for this run

on:
push:
branches:
- dev
pull_request:
branches:
- dev
- master
jobs:
check:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: [25.0.0]
elixir: [1.14.5]
env:
MIX_ENV: dev
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
services:
postgres:
image: postgres
ports: ['5432:5432']
env:
POSTGRES_USER: tenantee
POSTGRES_PASSWORD: tenantee
POSTGRES_DB: tenantee_dev
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: getong/redis-action@v1
with:
redis version: '7.0.11'
redis password: 'tenantee_redis'
- uses: actions/[email protected]
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- run: MIX_ENV=dev mix deps.get
- run: MIX_ENV=dev mix credo
- run: MIX_ENV=dev mix sobelow
- run: MIX_ENV=test mix ecto.create && mix ecto.migrate
- run: MIX_ENV=test VALKEY_URL=redis://:tenantee_redis@localhost:6379 mix coveralls.github