Skip to content

chore: disable caching all errors and bump to 1.0.0 #184

chore: disable caching all errors and bump to 1.0.0

chore: disable caching all errors and bump to 1.0.0 #184

Workflow file for this run

name: Test
on: [push]
jobs:
Build:
runs-on: ubuntu-latest
container:
image: mikaak/elixir:1.13-alpine
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- name: Cache Deps & Build
uses: actions/cache@v2
with:
key: ${{github.ref}}-deps-build-cache-${{hashFiles('./mix.lock')}}
path: |
/github/home/.mix
./deps
./_build
- name: Install Rebar & Hex
run: mix local.hex --force --if-missing && mix local.rebar --force --if-missing
- name: Install Dependencies
run: mix deps.get
- name: Compile Project
run: mix compile --warnings-as-errors
Test:
runs-on: ubuntu-latest
needs: [Build]
container:
image: mikaak/elixir:1.13-alpine
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- name: Cache Deps & Build
uses: actions/cache@v2
with:
key: ${{github.ref}}-deps-build-cache-${{hashFiles('./mix.lock')}}
path: |
/github/home/.mix
./deps
./_build
- name: Install Rebar & Hex
run: mix local.hex --force --if-missing && mix local.rebar --force --if-missing
- name: Install Dependencies
run: mix deps.get
- name: Run Tests
run: mix test
Credo:
runs-on: ubuntu-latest
needs: [Build]
container:
image: mikaak/elixir:1.13-alpine
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- name: Cache Deps & Build
uses: actions/cache@v2
with:
key: ${{github.ref}}-deps-build-cache-${{hashFiles('./mix.lock')}}
path: |
/github/home/.mix
./deps
./_build
- name: Install Rebar & Hex
run: mix local.hex --force --if-missing && mix local.rebar --force --if-missing
- name: Install Dependencies
run: mix deps.get
- name: Run Credo
run: mix credo
Coverage:
runs-on: ubuntu-latest
needs: [Build]
container:
image: mikaak/elixir:1.13-alpine
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- name: Cache Deps & Build
uses: actions/cache@v2
with:
key: ${{github.ref}}-deps-build-cache-${{hashFiles('./mix.lock')}}
path: |
/github/home/.mix
./deps
./_build
- name: Install Rebar & Hex
run: mix local.hex --force --if-missing && mix local.rebar --force --if-missing
- name: Install Dependencies
run: mix deps.get
- name: Run Coveralls
run: mix coveralls.json && bash <(curl -s https://codecov.io/bash)
- name: Upload to codecov.io
uses: codecov/codecov-action@v1