diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index a29eaeaa..8cd7d3f6 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -11,11 +11,11 @@ permissions: # added using https://github.com/step-security/secure-workflows jobs: publish: name: Publish Release to HEX PM - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: - otp: ['23.3'] - elixir: ['1.13'] + otp: ['27.2'] + elixir: ['1.17'] env: HEX_API_KEY: ${{ secrets.HEX_API_KEY }} steps: @@ -35,7 +35,7 @@ jobs: with: otp-version: ${{ matrix.otp }} elixir-version: ${{ matrix.elixir }} - - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 + - uses: actions/cache@v4 with: path: deps key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8529c1bc..ef607b8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,11 +13,14 @@ permissions: jobs: tests: name: Run tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: - otp: ['23.3'] - elixir: ['1.11', '1.12'] + include: + - otp: '26.2' + elixir: '1.16' + - otp: '27.2' + elixir: '1.17' env: MIX_ENV: test steps: @@ -48,7 +51,7 @@ jobs: echo "::set-output name=mix_hash::$mix_hash" - name: Cache dependecies - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 + uses: actions/cache@v4 with: path: deps key: ${{ runner.os }}-mix-${{ steps.set_vars.outputs.mix_hash }} @@ -57,7 +60,7 @@ jobs: - name: Cache PLT files id: plt-cache - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 + uses: actions/cache@v4 with: path: | _build diff --git a/mix.exs b/mix.exs index 22fecb8c..bcf82b12 100644 --- a/mix.exs +++ b/mix.exs @@ -41,7 +41,7 @@ defmodule StellarBase.MixProject do {:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}, {:excoveralls, "~> 0.18.1", only: :test, runtime: false}, {:castore, "~> 1.0"}, - {:credo, "~> 1.5", only: [:dev, :test], runtime: false}, + {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:ex_doc, "~> 0.34", only: :dev, runtime: false} ] end