From e1c5b01571861a092dad91469251ea0e5fa827b2 Mon Sep 17 00:00:00 2001 From: Mikalai Seva Date: Fri, 17 Nov 2023 19:13:19 +0100 Subject: [PATCH] [ci] simplify lint job --- .github/workflows/elixir.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index a44dbec..58acb1d 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -91,22 +91,16 @@ jobs: lint: # This condition ensures that this job will not run on pull requests in draft state if: github.event_name != 'pull_request' || !github.event.pull_request.draft - strategy: - fail-fast: false - matrix: - os: [ubuntu-22.04] - otp: [26] - elixir: [1.15] - runs-on: ${{matrix.os}} - name: lint|OTP ${{matrix.otp}}|Elixir ${{matrix.elixir}}|${{matrix.os}} + runs-on: ubuntu-22.04 + name: lint|OTP 26|Elixir 1.15|ubuntu-22.04 steps: - uses: actions/checkout@v4 with: ref: ${{env.BRANCH}} - uses: erlef/setup-beam@v1.16.0 with: - otp-version: ${{matrix.otp}} - elixir-version: ${{matrix.elixir}} + otp-version: 26 + elixir-version: 1.15 - name: Disable compile warnings run: echo "::remove-matcher owner=elixir-mixCompileWarning::" - name: Retrieve mix dependencies cache @@ -116,8 +110,8 @@ jobs: path: | deps _build - key: test-${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} - restore-keys: test-${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.elixir }}- + key: test-ubuntu-22.04-26-1.15-${{ hashFiles('**/mix.lock') }} + restore-keys: test-ubuntu-22.04-26-1.15- - name: Install Dependencies if: steps.mix-cache.outputs.cache-hit != 'true' run: | @@ -140,8 +134,8 @@ jobs: id: plt-cache with: path: priv/plts - key: ${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ hashFiles('**/mix.lock') }} - restore-keys: ${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts- + key: ubuntu-22.04-26-1.15-plts-${{ hashFiles('**/mix.lock') }} + restore-keys: ubuntu-22.04-26-1.15-plts- - name: Create PLTs run: | mkdir -p priv/plts