Skip to content

Merge pull request #16 from ExWeb3/dependabot/hex/credo-1.7.7 #37

Merge pull request #16 from ExWeb3/dependabot/hex/credo-1.7.7

Merge pull request #16 from ExWeb3/dependabot/hex/credo-1.7.7 #37

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Elixir CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
name: Test - Lint - Dialyze
runs-on: ubuntu-22.04
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
otp: ['25.x', '26.x']
elixir: ['1.15', '1.16']
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix coveralls.github
- name: Credo
run: mix credo --strict
- name: Dialyzer
run: mix dialyzer