Skip to content

Commit

Permalink
chore: use version-file (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
fahchen authored Sep 24, 2024
1 parent 6d71d47 commit b50ef2e
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
pull_request:
branches:
- main
env:
OTP_VERSION: 26.2.5
ELIXIR_VERSION: 1.16.3-otp-26

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
Expand All @@ -22,8 +19,7 @@ jobs:
- name: Setup
uses: byzanteam/jet-actions/setup-elixir@main
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
version-file: .tool-versions

- name: Install Dependencies
run: mix do deps.get, deps.unlock --check-unused, deps.clean --unused
Expand All @@ -35,8 +31,7 @@ jobs:
- name: Setup
uses: byzanteam/jet-actions/setup-elixir@main
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
version-file: .tool-versions

- name: Check formatting
run: mix format --check-formatted
Expand Down Expand Up @@ -65,8 +60,7 @@ jobs:
- name: Setup
uses: byzanteam/jet-actions/setup-elixir@main
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
version-file: .tool-versions

- name: Test
run: mix test
Expand All @@ -78,8 +72,7 @@ jobs:
- name: Setup
uses: byzanteam/jet-actions/setup-elixir@main
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
version-file: .tool-versions

- name: Credo
run: mix credo --strict
Expand All @@ -91,8 +84,7 @@ jobs:
- name: Setup
uses: byzanteam/jet-actions/setup-elixir@main
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
version-file: .tool-versions

- uses: actions/cache@v4
with:
Expand Down

0 comments on commit b50ef2e

Please sign in to comment.