Skip to content

Correct stale docs surfaced by the lib review #61

Correct stale docs surfaced by the lib review

Correct stale docs surfaced by the lib review #61

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- elixir: "1.18"
otp: "27"
- elixir: "1.20"
otp: "29"
# Exercise the lower bound of `decimal ~> 2.0 or ~> 3.0`.
- elixir: "1.20"
otp: "29"
decimal: "2"
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ matrix.elixir }}-decimal${{ matrix.decimal || '3' }}-${{ hashFiles('mix.lock') }}
- name: Pin Decimal to 2.x
if: matrix.decimal == '2'
run: sed -i 's/~> 2.0 or ~> 3.0/~> 2.0/' mix.exs && mix deps.unlock decimal
- run: mix deps.get
- run: mix format --check-formatted
- run: mix credo --strict
- run: mix test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
elixir-version: "1.20"
otp-version: "29"
- uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-coverage-${{ hashFiles('mix.lock') }}
- run: mix deps.get
- run: mix coveralls.github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}