Merge pull request #141 from nulib/dependabot/hex/dependencies/exvcr-… #143
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: authoritex | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
otp: ["22", "23", "24"] | |
elixir: ["1.10", "1.11", "1.12"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otp }} | |
elixir-version: ${{ matrix.elixir }} | |
- name: Cache Elixir dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-deps-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-deps-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }} | |
${{ runner.os }}-deps-${{ matrix.elixir }}-${{ matrix.otp }}- | |
- name: Install Dependencies | |
run: mix do deps.get, deps.compile | |
env: | |
MIX_ENV: test | |
- name: Static Analysis | |
run: mix credo --strict | |
env: | |
MIX_ENV: test | |
- name: Run Tests & Coverage Analysis | |
run: mix coveralls.circle --trace | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
build: | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Pass all checks | |
run: echo "Tests passed" |