Bump actions/cache from 3.3.2 to 4.0.2 #5
Workflow file for this run
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: [push] | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
name: test suite [otp=${{matrix.otp}}, elixir=${{matrix.elixir}}] | |
strategy: | |
matrix: | |
otp: [24.x, 25.x, 26.x] | |
elixir: [1.14.x] | |
steps: | |
- uses: actions/[email protected] | |
- name: Get deps | |
run: | | |
mix deps.get | |
mix deps.compile | |
- uses: actions/[email protected] | |
- name: Cache Dependencies | |
uses: actions/[email protected] | |
with: | |
path: | | |
deps | |
_build/dev | |
_build/test | |
key: elixir-cache-${{matrix.elixir}}-otp-${{matrix.otp}}-${{runner.os}}-${{hashFiles('mix.lock')}}-${{github.ref}} | |
restore-keys: | | |
elixir-cache-${{matrix.elixir}}-otp-${{matrix.otp}}-${{runner.os}}-${{hashFiles('mix.lock')}}- | |
elixir-cache-${{matrix.elixir}}-otp-${{matrix.otp}}-${{runner.os}}- | |
- uses: erlef/[email protected] | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- name: Setup & Run Tests | |
env: | |
MIX_ENV: test | |
run: | | |
mix deps.get | |
mix test --trace | |
- name: Credo | |
run: mix credo | |
- name: Create PLTs | |
run: mix dialyzer --plt | |
- name: Dialyzer | |
run: mix dialyzer |