Skip to content

Commit

Permalink
disable unnecessary workflow parts
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Feb 9, 2024
1 parent d3c7b53 commit bf32d42
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

name: Elixir CI

env:
MIX_ENV: test

on:
push:
branches: [ "main" ]
Expand All @@ -25,7 +28,7 @@ jobs:
- name: Set up Elixir
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0
with:
elixir-version: '1.15.2' # [Required] Define the Elixir version
elixir-version: '1.15.5' # [Required] Define the Elixir version
otp-version: '26.0' # [Required] Define the Erlang/OTP version
- name: Restore dependencies cache
uses: actions/cache@v3
Expand All @@ -35,26 +38,24 @@ jobs:
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
# - name: Run Credo
# run: mix credo --strict
# - name: Retrieve PLT Cache
# uses: actions/cache@v1
# id: plt-cache
# with:
# path: priv/plts
# key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
# - name: Create PLTs
# if: steps.plt-cache.outputs.cache-hit != 'true'
# run: |
# mkdir -p priv/plts
# mix dialyzer --plt
# - name: Run dialyzer
# run: mix dialyzer --no-check --halt-exit-status
- name: Check Formatting
run: mix format --check-formatted
- name: Run Credo
# TODO: consider getting to 100%
run: mix credo --strict
continue-on-error: true
- name: Run tests
run: mix test
- name: Build docs
run: mix docs
- name: Retrieve PLT Cache
uses: actions/cache@v1
id: plt-cache
with:
path: priv/plts
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: Create PLTs
if: steps.plt-cache.outputs.cache-hit != 'true'
run: |
mkdir -p priv/plts
mix dialyzer --plt
- name: Run dialyzer
run: mix dialyzer --no-check --halt-exit-status
# - name: Build docs
# run: mix docs

0 comments on commit bf32d42

Please sign in to comment.