feat: add timeout to case, task and workitem #4
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: Elixir CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
OTP_VERSION: 25.0 | |
ELIXIR_VERSION: 1.14.5-otp-25 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
mix: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | |
uses: byzanteam/jet-actions/setup-elixir@main | |
with: | |
otp-version: ${{ env.OTP_VERSION }} | |
elixir-version: ${{ env.ELIXIR_VERSION }} | |
- name: Install Dependencies | |
run: mix do deps.get, deps.unlock --check-unused, deps.clean --unused | |
build: | |
runs-on: ubuntu-latest | |
needs: mix | |
steps: | |
- name: Setup | |
uses: byzanteam/jet-actions/setup-elixir@main | |
with: | |
otp-version: ${{ env.OTP_VERSION }} | |
elixir-version: ${{ env.ELIXIR_VERSION }} | |
- name: Check formatting | |
run: mix format --check-formatted | |
- name: Check warnings | |
run: mix compile --warnings-as-errors | |
test: | |
runs-on: ubuntu-latest | |
needs: mix | |
steps: | |
- name: Setup | |
uses: byzanteam/jet-actions/setup-elixir@main | |
with: | |
otp-version: ${{ env.OTP_VERSION }} | |
elixir-version: ${{ env.ELIXIR_VERSION }} | |
- name: Test | |
run: mix test | |
# FIXME: fix all credo issues | |
# credo: | |
# runs-on: ubuntu-latest | |
# needs: mix | |
# steps: | |
# - name: Setup | |
# uses: byzanteam/jet-actions/setup-elixir@main | |
# with: | |
# otp-version: ${{ env.OTP_VERSION }} | |
# elixir-version: ${{ env.ELIXIR_VERSION }} | |
# - name: Credo | |
# run: mix credo --strict | |
dialyzer: | |
runs-on: ubuntu-latest | |
needs: mix | |
steps: | |
- name: Setup | |
uses: byzanteam/jet-actions/setup-elixir@main | |
with: | |
otp-version: ${{ env.OTP_VERSION }} | |
elixir-version: ${{ env.ELIXIR_VERSION }} | |
- uses: actions/cache@v3 | |
with: | |
path: priv/plts | |
key: ${{ runner.os }}-plt-${{ hashFiles('.tool-versions') }}-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-plt-${{ hashFiles('.tool-versions') }}- | |
- name: Dialyzer | |
run: mix dialyzer --format github |