From 64bfa56d10ea0a006269c3f8007e7a6306420223 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Tue, 14 Jan 2025 11:31:47 +0800 Subject: [PATCH] CI housekeeping List of changes: - bump GitHub Actions and .tools-versions - support Elixir 1.18 in matrix - use major number and setup/beam will get latest version --- .github/workflows/on-push.yml | 61 ++++++++++++++++++++--------------- .tool-versions | 4 +-- 2 files changed, 37 insertions(+), 28 deletions(-) diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index b420d7e7..f800b6e0 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -12,45 +12,48 @@ jobs: matrix: include: - pair: - otp: 27.x - elixir: 1.17.x + otp: "27" + elixir: "1.18" lint: lint + - pair: + otp: "27" + elixir: "1.17" - pair: - otp: 26.x - elixir: 1.17.x + otp: "26" + elixir: "1.17" - pair: - otp: 26.x - elixir: 1.16.x + otp: "26" + elixir: "1.16" - pair: - otp: 26.x - elixir: 1.15.x + otp: "26" + elixir: "1.15" - pair: - otp: 25.x - elixir: 1.17.x + otp: "25" + elixir: "1.17" - pair: - otp: 25.x - elixir: 1.16.x + otp: "25" + elixir: "1.16" - pair: - otp: 25.x - elixir: 1.15.x + otp: "25" + elixir: "1.15" - pair: - otp: 25.x - elixir: 1.14.x + otp: "25" + elixir: "1.14" - pair: - otp: 24.x - elixir: 1.16.x + otp: "24" + elixir: "1.16" - pair: - otp: 24.x - elixir: 1.15.x + otp: "24" + elixir: "1.15" - pair: - otp: 24.x - elixir: 1.14.x + otp: "24" + elixir: "1.14" - pair: - otp: 24.x - elixir: 1.13.x + otp: "24" + elixir: "1.13" steps: - uses: actions/checkout@v4 @@ -62,7 +65,7 @@ jobs: with: port: 8000 cors: "*" - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: | deps @@ -70,12 +73,18 @@ jobs: key: ${{ runner.os }}-mix-${{matrix.pair.otp}}-${{matrix.pair.elixir}}-${{ hashFiles('**/mix.lock') }} restore-keys: | ${{ runner.os }}-mix-${{matrix.pair.otp}}-${{matrix.pair.elixir}}- + - run: mix deps.get + - run: mix compile + - run: mix deps.unlock --check-unused - if: ${{matrix.lint}} # Only check formatting with the latest verison + if: ${{matrix.lint}} + - run: mix format --check-formatted if: ${{matrix.lint}} + - run: mix dialyzer if: ${{matrix.lint}} + - run: mix test diff --git a/.tool-versions b/.tool-versions index 7879e57e..4e1dac40 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -elixir 1.17.2 -erlang 27.0.1 +elixir 1.18.1 +erlang 27.2