diff --git a/.github/actions/elixir-setup/action.yml b/.github/actions/elixir-setup/action.yml index 7fb48ab..36cf778 100644 --- a/.github/actions/elixir-setup/action.yml +++ b/.github/actions/elixir-setup/action.yml @@ -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 diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 24e888e..d0e0438 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -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: @@ -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 diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index b270dad..9588aca 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -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 @@ -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 diff --git a/.github/workflows/dialyzer.yaml b/.github/workflows/dialyzer.yaml index 0524d1e..50869fd 100644 --- a/.github/workflows/dialyzer.yaml +++ b/.github/workflows/dialyzer.yaml @@ -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 @@ -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