Release v0.23.1 #336
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test (Elixir ${{ matrix.elixir }} | Erlang/OTP ${{ matrix.erlang }}) | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- erlang: "26.0" | |
elixir: "1.15" | |
lint: true | |
coverage: true | |
- erlang: "24.1" | |
elixir: "1.13" | |
- erlang: "22.2" | |
elixir: "1.11" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install OTP and Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.erlang }} | |
elixir-version: ${{ matrix.elixir }} | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Check no unused dependencies | |
run: mix deps.unlock --check-unused | |
if: ${{ matrix.lint }} | |
- name: Check formatting | |
run: mix format --check-formatted | |
if: ${{ matrix.lint }} | |
- name: Compile with --warnings-as-errors | |
run: mix compile --warnings-as-errors | |
if: ${{ matrix.lint }} | |
- name: Run tests | |
run: mix test --trace | |
if: ${{ !matrix.coverage }} | |
- name: Run tests with code coverage | |
run: mix coveralls.github | |
if: ${{ matrix.coverage }} |