Skip to content

Commit

Permalink
[ci] simplify lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
asakura committed Nov 17, 2023
1 parent 598c1c8 commit e1c5b01
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand All @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit e1c5b01

Please sign in to comment.