Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading