Skip to content

Commit

Permalink
Update GitHub Actions workflow to use Ubuntu 22.04 and add support fo…
Browse files Browse the repository at this point in the history
…r Elixir 1.16 and 1.18.0 (#227)

* Update GitHub Actions workflow to use Ubuntu 22.04 and add support for Elixir 1.16 and 1.18.0

* Update GitHub Actions workflow to use Elixir 1.14 and OTP 25

* Add :excoveralls to common extra applications and remove unused applications

* Add test step to GitHub Actions workflow and allow coveralls command to continue on error

---------

Co-authored-by: parroty <[email protected]>
  • Loading branch information
parroty and parroty authored Dec 26, 2024
1 parent 46a9665 commit 12b9e20
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,36 @@ on: [push, pull_request]
jobs:
tests:
name: Run Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
otp: ['23']
elixir: ['1.10', '1.11']
global-mock: [true, false]
include:
- otp: '24'
elixir: '1.12'
global-mock: true
- otp: '24'
elixir: '1.12'
global-mock: false
- otp: '26'
- otp: '25'
elixir: '1.14'
global-mock: true
- otp: '26'
experimental: false
- otp: '25'
elixir: '1.14'
global-mock: false
experimental: false
- otp: "27"
elixir: "1.17"
global-mock: true
experimental: false
- otp: "27"
elixir: "1.17"
global-mock: false
experimental: false
- otp: "27.2"
elixir: "1.18.0"
global-mock: true
experimental: true
- otp: "27.2"
elixir: "1.18.0"
global-mock: false
experimental: true
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -43,9 +54,11 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-
- run: mix deps.get
- run: mix test
- uses: nick-invision/retry@v3
with:
timeout_minutes: 3
max_attempts: 3
shell: bash
command: mix coveralls.github
continue-on-error: true
3 changes: 1 addition & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ defmodule ExVCR.Mixfile do

def application do
[
applications: [:meck, :exactor, :exjsx],
extra_applications: extra_applications(Mix.env()),
mod: {ExVCR.Application, []}
]
Expand All @@ -32,7 +31,7 @@ defmodule ExVCR.Mixfile do
defp extra_applications(_), do: []

defp common_extra_applications do
[:inets, :ranch, :telemetry, :finch, :ibrowse, :hackney, :http_server, :httpotion, :httpoison]
[:inets, :ranch, :telemetry, :finch, :ibrowse, :hackney, :http_server, :httpotion, :httpoison, :excoveralls]
end

def deps do
Expand Down

0 comments on commit 12b9e20

Please sign in to comment.