Bump ex_doc from 0.34.0 to 0.34.1 (#24) #53
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: Build and tests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- elixir: '1.10' | |
otp: '23' | |
- elixir: '1.11' | |
otp: '24' | |
- elixir: '1.12' | |
otp: '24' | |
- elixir: '1.13' | |
otp: '25' | |
- elixir: '1.14' | |
otp: '25' | |
- elixir: '1.15' | |
otp: '26' | |
- elixir: '1.16' | |
otp: '26' | |
- elixir: '1.17' | |
otp: '27' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- name: Fetch dependencies | |
run: mix deps.get --only test | |
- name: Launch tests | |
run: mix test | |
static-analysis: | |
runs-on: ubuntu-latest | |
name: Static analysis | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set mix.lock file hash | |
run: | | |
mix_hash="${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}" | |
echo "mix_hash=$mix_hash" >> $GITHUB_ENV | |
- name: Cache PLT files | |
uses: actions/cache@v4 | |
with: | |
path: | | |
_build/dev/*.plt | |
_build/dev/*.plt.hash | |
key: plt-cache-${{ env.mix_hash }} | |
restore-keys: | | |
plt-cache- | |
- name: Run dialyzer | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: '27' | |
elixir-version: '1.17' | |
- run: mix do deps.get, compile | |
- run: mix check |