From fcbc557edd94e2d0b18ed6a08c307f1755480a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 19:56:43 +0200 Subject: [PATCH 01/12] Update CI to test multiple versions --- .github/workflows/elixir.yml | 59 ++++++++++++------------------------ 1 file changed, 19 insertions(+), 40 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 8862827..51b5848 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -5,6 +5,18 @@ env: ERLANG_VERSION: 26.0.2 ELIXIR_VERSION: 1.16.0 +strategy: + matrix: + elixir: [1.15.0, 1.16.0, 1.17.0] + erlang: [24.0.0, 27.0.0] + exclude: + - elixir: 1.15.0 + erlang: 27.0.0 + - elixir: 1.16.0 + erlang: 27.0.0 + - elixir: 1.17.0 + erlang: 24.0.0 + jobs: compile_deps: runs-on: ubuntu-latest @@ -29,47 +41,10 @@ jobs: mix deps.get - name: Compile dependencies run: mix deps.compile - - check_format: - needs: [compile_deps] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: erlef/setup-beam@v1 - with: - otp-version: ${{ env.ERLANG_VERSION }} - elixir-version: ${{ env.ELIXIR_VERSION }} - - name: Retrieve Dependencies Cache - uses: actions/cache@v2 - id: mix-cache - with: - path: | - deps - _build - key: ${{ runner.os }}-${{ env.ERLANG_VERSION }}-${{ env.ELIXIR_VERSION }}-mix-${{ hashFiles('**/mix.lock') }} - - run: mix format --check-formatted - - check_warnings: - needs: [compile_deps] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: erlef/setup-beam@v1 - with: - otp-version: ${{ env.ERLANG_VERSION }} - elixir-version: ${{ env.ELIXIR_VERSION }} - - name: Retrieve Mix Dependencies Cache - uses: actions/cache@v2 - id: mix-cache - with: - path: | - deps - _build - key: ${{ runner.os }}-${{ env.ERLANG_VERSION }}-${{ env.ELIXIR_VERSION }}-mix-${{ hashFiles('**/mix.lock') }} - name: Check application compile warnings run: mix compile --force --warnings-as-errors - check_credo: + code_quality: needs: [compile_deps] runs-on: ubuntu-latest steps: @@ -78,7 +53,7 @@ jobs: with: otp-version: ${{ env.ERLANG_VERSION }} elixir-version: ${{ env.ELIXIR_VERSION }} - - name: Retrieve Mix Dependencies Cache + - name: Retrieve Dependencies Cache uses: actions/cache@v2 id: mix-cache with: @@ -86,15 +61,19 @@ jobs: deps _build key: ${{ runner.os }}-${{ env.ERLANG_VERSION }}-${{ env.ELIXIR_VERSION }}-mix-${{ hashFiles('**/mix.lock') }} + - name: Check format + run: mix format --check-formatted - name: Check Credo warnings run: mix credo + - name: Run Tests + run: mix test run_tests: needs: [compile_deps] runs-on: ubuntu-latest services: db: - image: postgres:11 + image: postgres:15 ports: ["5432:5432"] env: POSTGRES_PASSWORD: postgres From 3e7d972c929d6df55983f69e7fd4054fef35bf45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:03:34 +0200 Subject: [PATCH 02/12] Update CI --- .github/workflows/elixir.yml | 115 ++++++++++++++--------------------- 1 file changed, 44 insertions(+), 71 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 51b5848..f763163 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -1,76 +1,28 @@ name: code-analysis -on: push +on: + push: + paths-ignore: + - 'guides/**' + pull_request: + paths-ignore: + - 'guides/**' env: MIX_ENV: test - ERLANG_VERSION: 26.0.2 - ELIXIR_VERSION: 1.16.0 - -strategy: - matrix: - elixir: [1.15.0, 1.16.0, 1.17.0] - erlang: [24.0.0, 27.0.0] - exclude: - - elixir: 1.15.0 - erlang: 27.0.0 - - elixir: 1.16.0 - erlang: 27.0.0 - - elixir: 1.17.0 - erlang: 24.0.0 jobs: - compile_deps: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: erlef/setup-beam@v1 - with: - otp-version: ${{ env.ERLANG_VERSION }} - elixir-version: ${{ env.ELIXIR_VERSION }} - - name: Retrieve Dependencies Cache - uses: actions/cache@v2 - id: mix-cache - with: - path: | - deps - _build - key: ${{ runner.os }}-${{ env.ERLANG_VERSION }}-${{ env.ELIXIR_VERSION }}-mix-${{ hashFiles('**/mix.lock') }} - - name: Install Mix Dependencies - run: | - mix local.rebar --force - mix local.hex --force - mix deps.get - - name: Compile dependencies - run: mix deps.compile - - name: Check application compile warnings - run: mix compile --force --warnings-as-errors - - code_quality: - needs: [compile_deps] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: erlef/setup-beam@v1 - with: - otp-version: ${{ env.ERLANG_VERSION }} - elixir-version: ${{ env.ELIXIR_VERSION }} - - name: Retrieve Dependencies Cache - uses: actions/cache@v2 - id: mix-cache - with: - path: | - deps - _build - key: ${{ runner.os }}-${{ env.ERLANG_VERSION }}-${{ env.ELIXIR_VERSION }}-mix-${{ hashFiles('**/mix.lock') }} - - name: Check format - run: mix format --check-formatted - - name: Check Credo warnings - run: mix credo - - name: Run Tests - run: mix test - - run_tests: - needs: [compile_deps] + code_quality_and_tests: runs-on: ubuntu-latest + strategy: + matrix: + elixir: [1.15.0, 1.16.0, 1.17.0] + erlang: [24.0.0, 27.0.0] + exclude: + - elixir: 1.15.0 + erlang: 27.0.0 + - elixir: 1.16.0 + erlang: 27.0.0 + - elixir: 1.17.0 + erlang: 24.0.0 services: db: image: postgres:15 @@ -84,17 +36,38 @@ jobs: --health-retries 5 steps: - uses: actions/checkout@v2 + - uses: erlef/setup-beam@v1 with: - otp-version: ${{ env.ERLANG_VERSION }} - elixir-version: ${{ env.ELIXIR_VERSION }} - - name: Retrieve Mix Dependencies Cache + otp-version: ${{ matrix.erlang }} + elixir-version: ${{ matrix.elixir }} + + - name: Retrieve Dependencies Cache uses: actions/cache@v2 id: mix-cache with: path: | deps _build - key: ${{ runner.os }}-${{ env.ERLANG_VERSION }}-${{ env.ELIXIR_VERSION }}-mix-${{ hashFiles('**/mix.lock') }} + key: ${{ runner.os }}-${{ matrix.erlang }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }} + + - name: Install Mix Dependencies + run: mix deps.get --only test + + - name: Check format + run: mix format --check-formatted + + - name: Check unused dependencies + run: mix deps.unlock --check-unused + + - name: Compile dependencies + run: mix deps.compile + + - name: Check application compile warnings + run: mix compile --force --warnings-as-errors + + - name: Check Credo warnings + run: mix credo + - name: Run Tests run: mix test From fa296a602fffa5aae9b6bfad43ef6410c263db2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:05:46 +0200 Subject: [PATCH 03/12] Update job CI name --- .github/workflows/elixir.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index f763163..40e4f05 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -1,4 +1,4 @@ -name: code-analysis +name: CI on: push: paths-ignore: @@ -34,6 +34,7 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 + name: Code quality & Tests - Elixir v${{ matrix.erlang }}, Erlang v${{ matrix.elixir }} steps: - uses: actions/checkout@v2 From de7078d216ff8e237bd6da2eae48de1bef70423d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:09:05 +0200 Subject: [PATCH 04/12] Update CI --- .github/workflows/elixir.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 40e4f05..8f967aa 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -13,6 +13,7 @@ jobs: code_quality_and_tests: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: elixir: [1.15.0, 1.16.0, 1.17.0] erlang: [24.0.0, 27.0.0] @@ -34,7 +35,7 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 - name: Code quality & Tests - Elixir v${{ matrix.erlang }}, Erlang v${{ matrix.elixir }} + name: Code quality & Tests - Elixir v${{ matrix.elixir }}, Erlang v${{ matrix.erlang }} steps: - uses: actions/checkout@v2 From 1dad91aa97b9dd42dee3969cfccc5c698467ccd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:13:18 +0200 Subject: [PATCH 05/12] Only lint on some versions --- .github/workflows/elixir.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 8f967aa..96e2c12 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -15,15 +15,17 @@ jobs: strategy: fail-fast: false matrix: - elixir: [1.15.0, 1.16.0, 1.17.0] - erlang: [24.0.0, 27.0.0] - exclude: - - elixir: 1.15.0 - erlang: 27.0.0 - - elixir: 1.16.0 - erlang: 27.0.0 - - elixir: 1.17.0 - erlang: 24.0.0 + include: + - pair: + elixir: 1.15.0 + erlang: 24.0.0 + - pair: + elixir: 1.16.0 + erlang: 24.0.0 + - pair: + elixir: 1.17.0 + erlang: 27.0.0 + lint: true services: db: image: postgres:15 @@ -61,6 +63,7 @@ jobs: - name: Check unused dependencies run: mix deps.unlock --check-unused + if: ${{ matrix.lint }} - name: Compile dependencies run: mix deps.compile @@ -70,6 +73,7 @@ jobs: - name: Check Credo warnings run: mix credo + if: ${{ matrix.lint }} - name: Run Tests run: mix test From 9fc9b4b96b245fcf95ccac248ec4e8a04c57f161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:16:10 +0200 Subject: [PATCH 06/12] Fix error --- .github/workflows/elixir.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 96e2c12..29c6a23 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -25,7 +25,6 @@ jobs: - pair: elixir: 1.17.0 erlang: 27.0.0 - lint: true services: db: image: postgres:15 @@ -56,14 +55,13 @@ jobs: key: ${{ runner.os }}-${{ matrix.erlang }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }} - name: Install Mix Dependencies - run: mix deps.get --only test + run: mix deps.get - name: Check format run: mix format --check-formatted - name: Check unused dependencies run: mix deps.unlock --check-unused - if: ${{ matrix.lint }} - name: Compile dependencies run: mix deps.compile @@ -73,7 +71,6 @@ jobs: - name: Check Credo warnings run: mix credo - if: ${{ matrix.lint }} - name: Run Tests run: mix test From 4fb8d27b89a2f57eb949c3b6108dcb98a4e8070d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:16:54 +0200 Subject: [PATCH 07/12] Update name --- .github/workflows/elixir.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 29c6a23..531d787 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -36,7 +36,7 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 - name: Code quality & Tests - Elixir v${{ matrix.elixir }}, Erlang v${{ matrix.erlang }} + name: Elixir v${{ matrix.elixir }}, Erlang v${{ matrix.erlang }} steps: - uses: actions/checkout@v2 From fdd498065eac465d885cfb4f44e42456c7c7807b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:18:01 +0200 Subject: [PATCH 08/12] Update syntax --- .github/workflows/elixir.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 531d787..4358a86 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -16,15 +16,12 @@ jobs: fail-fast: false matrix: include: - - pair: - elixir: 1.15.0 - erlang: 24.0.0 - - pair: - elixir: 1.16.0 - erlang: 24.0.0 - - pair: - elixir: 1.17.0 - erlang: 27.0.0 + - elixir: 1.15.0 + erlang: 24.0.0 + - elixir: 1.16.0 + erlang: 24.0.0 + - elixir: 1.17.0 + erlang: 27.0.0 services: db: image: postgres:15 From 3625c769b8ff45d3a861455c9d293e8370ed3386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:33:07 +0200 Subject: [PATCH 09/12] Update credo --- mix.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mix.lock b/mix.lock index 61237f0..e5beb83 100644 --- a/mix.lock +++ b/mix.lock @@ -5,7 +5,7 @@ "cowboy": {:hex, :cowboy, "2.12.0", "f276d521a1ff88b2b9b4c54d0e753da6c66dd7be6c9fca3d9418b561828a3731", [:make, :rebar3], [{:cowlib, "2.13.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "8a7abe6d183372ceb21caa2709bec928ab2b72e18a3911aa1771639bef82651e"}, "cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"}, "cowlib": {:hex, :cowlib, "2.13.0", "db8f7505d8332d98ef50a3ef34b34c1afddec7506e4ee4dd4a3a266285d282ca", [:make, :rebar3], [], "hexpm", "e1e1284dc3fc030a64b1ad0d8382ae7e99da46c3246b815318a4b848873800a4"}, - "credo": {:hex, :credo, "1.7.6", "b8f14011a5443f2839b04def0b252300842ce7388f3af177157c86da18dfbeea", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "146f347fb9f8cbc5f7e39e3f22f70acbef51d441baa6d10169dd604bfbc55296"}, + "credo": {:hex, :credo, "1.7.7", "771445037228f763f9b2afd612b6aa2fd8e28432a95dbbc60d8e03ce71ba4446", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "8bc87496c9aaacdc3f90f01b7b0582467b69b4bd2441fe8aae3109d843cc2f2e"}, "db_connection": {:hex, :db_connection, "2.6.0", "77d835c472b5b67fc4f29556dee74bf511bbafecdcaf98c27d27fa5918152086", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c2f992d15725e721ec7fbc1189d4ecdb8afef76648c746a8e1cad35e3b8a35f3"}, "decimal": {:hex, :decimal, "2.1.1", "5611dca5d4b2c3dd497dec8f68751f1f1a54755e8ed2a966c2633cf885973ad6", [:mix], [], "hexpm", "53cfe5f497ed0e7771ae1a475575603d77425099ba5faef9394932b35020ffcc"}, "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, @@ -13,7 +13,7 @@ "ecto_sql": {:hex, :ecto_sql, "3.11.2", "c7cc7f812af571e50b80294dc2e535821b3b795ce8008d07aa5f336591a185a8", [:mix], [{:db_connection, "~> 2.4.1 or ~> 2.5", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.11.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.6.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.16 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "73c07f995ac17dbf89d3cfaaf688fcefabcd18b7b004ac63b0dc4ef39499ed6b"}, "ex_doc": {:hex, :ex_doc, "0.33.0", "690562b153153c7e4d455dc21dab86e445f66ceba718defe64b0ef6f0bd83ba0", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "3f69adc28274cb51be37d09b03e4565232862a4b10288a3894587b0131412124"}, "file_system": {:hex, :file_system, "1.0.0", "b689cc7dcee665f774de94b5a832e578bd7963c8e637ef940cd44327db7de2cd", [:mix], [], "hexpm", "6752092d66aec5a10e662aefeed8ddb9531d79db0bc145bb8c40325ca1d8536d"}, - "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, + "jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"}, "makeup": {:hex, :makeup, "1.1.2", "9ba8837913bdf757787e71c1581c21f9d2455f4dd04cfca785c70bbfff1a76a3", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cce1566b81fbcbd21eca8ffe808f33b221f9eee2cbc7a1706fc3da9ff18e6cac"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, "makeup_erlang": {:hex, :makeup_erlang, "1.0.0", "6f0eff9c9c489f26b69b61440bf1b238d95badae49adac77973cbacae87e3c2e", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "ea7a9307de9d1548d2a72d299058d1fd2339e3d398560a0e46c27dab4891e4d2"}, From 4b61c8e863d41f789d36f073fbb1e55a6aa4137f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:33:15 +0200 Subject: [PATCH 10/12] Update CI --- .github/workflows/elixir.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 4358a86..808cdfd 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -35,7 +35,7 @@ jobs: --health-retries 5 name: Elixir v${{ matrix.elixir }}, Erlang v${{ matrix.erlang }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: erlef/setup-beam@v1 with: @@ -43,7 +43,7 @@ jobs: elixir-version: ${{ matrix.elixir }} - name: Retrieve Dependencies Cache - uses: actions/cache@v2 + uses: actions/cache@v4 id: mix-cache with: path: | @@ -54,15 +54,15 @@ jobs: - name: Install Mix Dependencies run: mix deps.get - - name: Check format - run: mix format --check-formatted - - name: Check unused dependencies run: mix deps.unlock --check-unused - name: Compile dependencies run: mix deps.compile + - name: Check format + run: mix format --check-formatted + - name: Check application compile warnings run: mix compile --force --warnings-as-errors From 2d088686568c234421cdceeccd8ca606ab4b3612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:33:22 +0200 Subject: [PATCH 11/12] Update dev versions --- .tool-versions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.tool-versions b/.tool-versions index bfad48d..9700456 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -elixir 1.16 -erlang 26.0.2 +elixir 1.17 +erlang 27.0 From b4052dce3fe9d6f11f17ff374a5f77c4d427edb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 1 Aug 2024 20:39:53 +0200 Subject: [PATCH 12/12] Do not run CI except on main --- .github/workflows/elixir.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 808cdfd..4ec0190 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -1,6 +1,8 @@ name: CI on: push: + branches: + - main paths-ignore: - 'guides/**' pull_request: