Bump actions/checkout from 3.2.0 to 4.2.2 #360
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, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
strategy: | |
matrix: | |
include: | |
- elixir: 1.10.x | |
otp: 22.x | |
- elixir: 1.11.x | |
otp: 23.x | |
- elixir: 1.12.x | |
otp: 23.x | |
check_formatted: true | |
check_style: true | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- name: Check formatting | |
if: matrix.check_formatted | |
run: mix format --check-formatted | |
- name: Install Dependencies | |
run: mix deps.get && mix deps.unlock --check-unused | |
- name: Check style | |
if: matrix.check_style | |
run: mix credo --strict --format flycheck | |
- name: Compile project | |
run: mix compile --warnings-as-errors | |
- name: Run tests | |
run: mix test --cover |