Skip to content

Commit

Permalink
Update action to pull from .tool-versions file.
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn committed Aug 28, 2024
1 parent bf362c6 commit 56655ac
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/actions/elixir-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ runs:
uses: erlef/setup-beam@v1
id: beam
with:
elixir-version: ${{ inputs.elixir-version }}
otp-version: ${{ inputs.otp-version }}
version-file: .tool-versions
version-type: strict

- name: Get deps cache
uses: actions/cache@v4
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
runs-on: ubuntu-latest
env:
MIX_ENV: test
strategy:
# TODO: It would be better to pull these from the `.tool-versions` file.
matrix:
otp: ["27.0.1"]
elixir: ["1.17.2"]

services:
db:
Expand All @@ -45,8 +40,6 @@ jobs:
- name: Setup Elixir Project
uses: ./.github/actions/elixir-setup
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
build-flags: --all-warnings --warnings-as-errors

- name: Run Migrations
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
quality_checks:
name: Formatting, Credo, and Unused Deps
runs-on: ubuntu-latest
strategy:
# TODO: It would be better to pull these from the `.tool-versions` file.
matrix:
otp: ["27.0.1"]
elixir: ["1.17.2"]

steps:
- name: Checkout repository
Expand All @@ -29,8 +24,6 @@ jobs:
- name: Setup Elixir Project
uses: ./.github/actions/elixir-setup
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
build-app: false

- name: Check for unused deps
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/dialyzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
runs-on: ubuntu-latest
env:
MIX_ENV: dev
strategy:
# TODO: It would be better to pull these from the `.tool-versions` file.
matrix:
otp: ["27.0.1"]
elixir: ["1.17.2"]

steps:
- name: Checkout repository
Expand All @@ -32,8 +27,6 @@ jobs:
uses: ./.github/actions/elixir-setup
id: beam
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
build-app: false

# Don't cache PLTs based on mix.lock hash, as Dialyzer can incrementally update even old ones
Expand Down

0 comments on commit 56655ac

Please sign in to comment.