Bump ex_abi from 0.6.4 to 0.7.0 (#85) #354
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
# 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: Install Ganache | |
run: npm install -g ganache | |
- name: Install Solidity | |
run: | | |
sudo add-apt-repository ppa:ethereum/ethereum | |
sudo apt-get update | |
sudo apt-get install solc | |
- 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: Start Ganache (Background) | |
run: ganache --wallet.deterministic & | |
- name: Prepare for tests | |
run: elixir test/test_prepare.exs | |
- name: Run tests | |
run: mix coveralls.github | |
- name: Credo | |
run: mix credo --strict | |
- name: Dialyzer | |
run: mix dialyzer |