Skip to content

Bump ex_doc from 0.30.9 to 0.31.0 #239

Bump ex_doc from 0.30.9 to 0.31.0

Bump ex_doc from 0.30.9 to 0.31.0 #239

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
MIX_ENV: test
jobs:
test:
runs-on: ubuntu-latest
name: Check Code Quality
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
id: beam
with:
version-file: .tool-versions
version-type: strict
install-rebar: true
install-hex: true
- name: Retrieve Build Cache
uses: actions/cache@v3
id: build-folder-cache
with:
path: _build
key: ${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Retrieve Mix Dependencies Cache
uses: actions/cache@v3
id: deps-cache
with:
path: deps
key: ${{runner.os}}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Retrieve PLT Cache
uses: actions/cache@v3
id: plt-cache
with:
key: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
restore-keys: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-plt
path: |
priv/plts
- name: Install Mix Dependencies
if: steps.mix-cache.outputs.cache-hit != 'true'
run: mix deps.get
- name: Check Formatting
run: mix format --check-formatted
- name: Run Credo
run: mix credo --strict
- name: Run Coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mix coveralls.github
# Create PLTs if no cache was found
- name: Create PLTs
if: steps.plt-cache.outputs.cache-hit != 'true'
run: |
mkdir -p priv/plts
mix dialyzer
- name: Run dialyzer
run: mix dialyzer --format github