Skip to content

Commit

Permalink
Merge pull request #485 from jeremyjh/jh-ubuntu20-ci
Browse files Browse the repository at this point in the history
Use explicit ubuntu version with matrix support.
  • Loading branch information
jeremyjh committed Mar 19, 2023
2 parents 8073eaa + ee31585 commit 605846c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ jobs:
check_duplicate_runs:
name: Check for duplicate runs
continue-on-error: true
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ github.token }}
concurrent_skipping: always
cancel_others: true
skip_after_successful_duplicate: true
Expand All @@ -25,24 +26,25 @@ jobs:

test:
name: Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: check_duplicate_runs
if: ${{ needs.check_duplicate_runs.outputs.should_skip != 'true' }}

strategy:
fail-fast: false
matrix:
elixir:
- '1.10.4'
- '1.11.4'
- '1.12.2'
- '1.12.3'
- '1.13.4'
- '1.14.3'
otp:
- '22.3'
- '23.3'
- '24.0'
- '24.3'
- '25.3'

exclude:
- elixir: '1.10.4'
otp: '24.0'
- elixir: '1.12.3'
otp: '25.3'

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
elixir 1.12.2
erlang 24.0.5
elixir 1.14.3-otp-25
erlang 25.2.2
2 changes: 1 addition & 1 deletion lib/dialyxir/project.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule Dialyxir.Project do

def cons_apps do
# compile & load all deps paths
Mix.Tasks.Deps.Loadpaths.run([])
_ = Mix.Tasks.Deps.Loadpaths.run([])
# compile & load current project paths
Mix.Task.run("compile")
apps = plt_apps() || plt_add_apps() ++ include_deps()
Expand Down

0 comments on commit 605846c

Please sign in to comment.