Fix CI - Bump minimum Elixir/OTP #36
Workflow file for this run
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
--- | |
name: Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
name: Check Style | |
env: | |
MIX_ENV: test | |
CI: "true" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: '25' | |
elixir-version: '1.14.3' | |
- run: mix deps.get --only dev | |
- run: mix format --check-formatted | |
- run: mix credo --strict | |
test-oldest: | |
runs-on: ubuntu-20.04 | |
name: Tests on oldest version | |
env: | |
MIX_ENV: test | |
CI: "true" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: '22' | |
elixir-version: '1.12.3-otp-22' | |
- run: rm mix.lock | |
- run: mix deps.get | |
- run: mix compile --force --warnings-as-errors | |
- run: mix test | |
test: | |
runs-on: ubuntu-latest | |
name: Tests on latest version | |
env: | |
MIX_ENV: test | |
CI: "true" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: '25' | |
elixir-version: '1.14.3' | |
- run: rm mix.lock | |
- run: mix deps.get | |
- run: mix compile --force --warnings-as-errors | |
- run: mix test |