Skip to content

chore(deps): update actions/cache action to v4 #158

chore(deps): update actions/cache action to v4

chore(deps): update actions/cache action to v4 #158

Workflow file for this run

name: Elixir CI
on:
- push
jobs:
build:
runs-on: ubuntu-20.04
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
elixir:
- "1.11"
- "1.12"
- "1.13"
- "1.14"
otp:
- "23"
- "24"
- "25"
exclude:
- elixir: "1.11"
otp: "25"
- elixir: "1.12"
otp: "25"
steps:
- uses: actions/checkout@v4
- name: Setup elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Cache Dependencies
uses: actions/cache@v4
id: cache-deps
with:
path: deps
key: deps-${{ env.MIX_ENV }}-v${{ matrix.elixir }}-otp-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
deps-${{ env.MIX_ENV }}-v${{ matrix.elixir }}-otp-${{ matrix.otp }}-
- name: Cache Dialyzer PLTs
uses: actions/cache@v4
with:
path: priv/plts
key: plts-${{ env.MIX_ENV }}-v${{ matrix.elixir }}-otp-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
plts-v${{ matrix.elixir }}-otp-${{ matrix.otp }}-
- name: Install Dependencies
run: mix deps.get
- name: Check Formatting
run: mix format --check-formatted
- name: Run Tests
run: mix test --trace
- name: Check Typespec
run: mix dialyzer --halt-exit-status
- name: Build Code Coverage Report
run: mix coveralls.json
- name: Upload Code Coverage Report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover/excoveralls.json