Merge pull request #646 from zvonimirr/dependabot/hex/phoenix-1.7.20 #540
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |