mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-31 02:56:07 +00:00
Merge pull request #27 from actions/test-more-version-combinations
Add older and newer Elixir/OTP versions
This commit is contained in:
@@ -12,14 +12,18 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
pair:
|
pair:
|
||||||
|
- otp-version: '18.0'
|
||||||
|
elixir-version: '1.1'
|
||||||
|
- otp-version: '23.0'
|
||||||
|
elixir-version: '1.10'
|
||||||
# Full Versions
|
# Full Versions
|
||||||
- otp-version: 22.0
|
- otp-version: '22.0'
|
||||||
elixir-version: 1.9.1
|
elixir-version: '1.9.1'
|
||||||
# Semver ranges
|
# Semver ranges
|
||||||
- otp-version: 21.x
|
- otp-version: '21.x'
|
||||||
elixir-version: <1.9.1
|
elixir-version: '<1.9.1'
|
||||||
# Branches
|
# Branches
|
||||||
- otp-version: 22.0
|
- otp-version: '22.0'
|
||||||
elixir-version: master
|
elixir-version: master
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
@@ -21,6 +21,10 @@ For best results, we recommend specifying exact OTP and Elixir versions.
|
|||||||
However, values like `22.x` are also accepted, and we attempt to resolve them
|
However, values like `22.x` are also accepted, and we attempt to resolve them
|
||||||
according to semantic versioning rules.
|
according to semantic versioning rules.
|
||||||
|
|
||||||
|
Additionally, it is recommended that one specifies OTP and Elixir versions
|
||||||
|
using YAML strings, as these examples do, so that numbers like `23.0` don't
|
||||||
|
end up being parsed as `23`, which is not equivalent.
|
||||||
|
|
||||||
### Basic example
|
### Basic example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -33,8 +37,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-elixir@v1
|
- uses: actions/setup-elixir@v1
|
||||||
with:
|
with:
|
||||||
otp-version: 22.2
|
otp-version: '22.2'
|
||||||
elixir-version: 1.9.4
|
elixir-version: '1.9.4'
|
||||||
- run: mix deps.get
|
- run: mix deps.get
|
||||||
- run: mix test
|
- run: mix test
|
||||||
```
|
```
|
||||||
@@ -50,8 +54,8 @@ jobs:
|
|||||||
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
|
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
otp: [20.3, 21.3, 22.2]
|
otp: ['20.3', '21.3', '22.2']
|
||||||
elixir: [1.8.2, 1.9.4]
|
elixir: ['1.8.2', '1.9.4']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-elixir@v1
|
- uses: actions/setup-elixir@v1
|
||||||
@@ -87,8 +91,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-elixir@v1
|
- uses: actions/setup-elixir@v1
|
||||||
with:
|
with:
|
||||||
otp-version: 22.2
|
otp-version: '22.2'
|
||||||
elixir-version: 1.9.4
|
elixir-version: '1.9.4'
|
||||||
- run: mix deps.get
|
- run: mix deps.get
|
||||||
- run: mix test
|
- run: mix test
|
||||||
```
|
```
|
||||||
|
|||||||
Vendored
+9
-5
@@ -12,14 +12,18 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
pair:
|
pair:
|
||||||
|
- otp-version: '18.0'
|
||||||
|
elixir-version: '1.1'
|
||||||
|
- otp-version: '23.0'
|
||||||
|
elixir-version: '1.10'
|
||||||
# Full Versions
|
# Full Versions
|
||||||
- otp-version: 22.0
|
- otp-version: '22.0'
|
||||||
elixir-version: 1.9.1
|
elixir-version: '1.9.1'
|
||||||
# Semver ranges
|
# Semver ranges
|
||||||
- otp-version: 21.x
|
- otp-version: '21.x'
|
||||||
elixir-version: <1.9.1
|
elixir-version: '<1.9.1'
|
||||||
# Branches
|
# Branches
|
||||||
- otp-version: 22.0
|
- otp-version: '22.0'
|
||||||
elixir-version: master
|
elixir-version: master
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ defmodule Test.MixProject do
|
|||||||
[
|
[
|
||||||
app: :test,
|
app: :test,
|
||||||
version: "0.1.0",
|
version: "0.1.0",
|
||||||
elixir: "~> 1.9",
|
elixir: "~> 1.1",
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
deps: deps()
|
deps: deps()
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user