Skip to content

chore: use mix env prod on CI #142

chore: use mix env prod on CI

chore: use mix env prod on CI #142

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
tests:
name: test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.17
otp: 27
- elixir: 1.16
otp: 26
- elixir: 1.15
otp: 25
- elixir: 1.14
otp: 24
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- run: docker compose -f "test/compose_files/docker-compose.yml" up -d
- run: MIX_ENV=prod mix deps.get
- run: MIX_ENV=prod mix compile --warnings-as-errors
- run: mix test --warnings-as-errors