Skip to content

Commit

Permalink
Use include with specific rebar3 version with OTP 21, upgrade OTP 24
Browse files Browse the repository at this point in the history
rebar3 v3.16.1 ship support OTP 22+, this cause ci fail on OTP 21. Fixes
by using rebar3 v3.15.2 with OTP 21 and add it with include matrix
instead.

In this changes, upgrade OTP 24 from 24.0.1 to 24.0.2 and change
setup-elixir to setup-beam instead.
  • Loading branch information
thanabodee-c committed Jun 1, 2021
1 parent d0bfa1b commit 933a678
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
- uses: erlef/setup-beam@v1
with:
otp-version: '24.0.1'
elixir-version: '1.12.1'
Expand All @@ -33,9 +33,14 @@ jobs:
name: Test on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }}
strategy:
matrix:
otp_version: ['24.0.1', '23.3.4.1', '22.3.4.19', '21.3.8.23']
otp_version: ['24.0.2', '23.3.4.1', '22.3.4.19']
elixir: ['1.12.1', '1.11.4']
rebar3_version: ['3.16.1']
os: [ubuntu-18.04]
include:
- otp_version: '21.3.8.23'
elixir_version: '1.11.4'
rebar3_version: '3.15.2'
exclude:
- otp_version: '21.3.8.23'
elixir: '1.12.1'
Expand All @@ -45,10 +50,11 @@ jobs:
OTEL_TRACES_EXPORTER: "none"
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir }}
rebar3-version: ${{ matrix.rebar3_version }}
- name: Compile
run: rebar3 as test compile
- name: ExUnit
Expand All @@ -59,9 +65,14 @@ jobs:
name: Test on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }}
strategy:
matrix:
otp_version: ['24.0.1', '23.3.4.1', '22.3.4.19', '21.3.8.23']
otp_version: ['24.0.2', '23.3.4.1', '22.3.4.19']
elixir: ['1.12.1', '1.11.4']
rebar3_version: ['3.16.1']
os: [ubuntu-18.04]
include:
- otp_version: '21.3.8.23'
elixir_version: '1.11.4'
rebar3_version: '3.15.2'
exclude:
- otp_version: '21.3.8.23'
elixir: '1.12.1'
Expand All @@ -73,10 +84,11 @@ jobs:
working-directory: apps/opentelemetry_api/
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir }}
rebar3-version: ${{ matrix.rebar3_version }}
- uses: actions/cache@v2
name: Cache
with:
Expand All @@ -102,7 +114,7 @@ jobs:
name: Dialyze on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }}
strategy:
matrix:
otp_version: ['24.0.1']
otp_version: ['24.0.2']
elixir: ['1.12.1']
os: [ubuntu-18.04]
env:
Expand All @@ -113,7 +125,7 @@ jobs:
working-directory: apps/opentelemetry_api/
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: ${{ matrix.elixir }}
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
otp_version: ['24.0.1', '23.3.4.1', '22.3.4.19', '21.3.8.23']
otp_version: ['24.0.2', '23.3.4.1', '22.3.4.19']
rebar3_version: ['3.16.1']
os: [ubuntu-18.04]
include:
- otp_version: '21.3.8.23'
rebar3_version: '3.15.2'
env:
OTP_VERSION: ${{ matrix.otp_version }}
OTEL_TRACES_EXPORTER: "none"
steps:
- uses: actions/checkout@v2
- name: Run Collector
run: docker-compose up -d
- uses: erlef/setup-elixir@v1
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
rebar3-version: ${{ matrix.rebar3_version }}
elixir-version: '1.11.1'
- uses: actions/cache@v2
name: Cache
Expand Down Expand Up @@ -69,14 +74,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
otp_version: ['24.0.1', '23.3.4.1', '22.3.4.19', '21.3.8.23']
otp_version: ['24.0.2', '23.3.4.1', '22.3.4.19']
rebar3_version: ['3.16.1']
os: [ubuntu-18.04]
include:
- otp_version: '21.3.8.23'
rebar3_version: '3.15.2'
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_version }}
elixir-version: '1.11.1'
rebar3-version: ${{ matrix.rebar3_version }}
elixir-version: '1.12.1'
- uses: actions/cache@v2
name: Cache
with:
Expand Down

0 comments on commit 933a678

Please sign in to comment.