Merge pull request #27 from actions/test-more-version-combinations

413f332 · Jonathan Clem · 2020-05-17 15:04

4 files +29 -17
Message
{commit_body(@commit)}

Files changed

modified .github/workflows/test.yml
+9 −5
@@ -12,14 +12,18 @@ jobs:
12 12 strategy:
13 13 matrix:
14 14 pair:
15 + - otp-version: '18.0'
16 + elixir-version: '1.1'
17 + - otp-version: '23.0'
18 + elixir-version: '1.10'
15 19 # Full Versions
16 - otp-version: 22.0
17 elixir-version: 1.9.1
20 + - otp-version: '22.0'
21 + elixir-version: '1.9.1'
18 22 # Semver ranges
19 - otp-version: 21.x
20 elixir-version: <1.9.1
23 + - otp-version: '21.x'
24 + elixir-version: '<1.9.1'
21 25 # Branches
22 - otp-version: 22.0
26 + - otp-version: '22.0'
23 27 elixir-version: master
24 28 steps:
25 29 - uses: actions/checkout@v2
modified README.md
+10 −6
@@ -21,6 +21,10 @@ For best results, we recommend specifying exact OTP and Elixir versions.
21 21 However, values like `22.x` are also accepted, and we attempt to resolve them
22 22 according to semantic versioning rules.
23 23
24 +Additionally, it is recommended that one specifies OTP and Elixir versions
25 +using YAML strings, as these examples do, so that numbers like `23.0` don't
26 +end up being parsed as `23`, which is not equivalent.
27 +
24 28 ### Basic example
25 29
26 30 ```yaml
@@ -33,8 +37,8 @@ jobs:
33 37 - uses: actions/checkout@v2
34 38 - uses: actions/setup-elixir@v1
35 39 with:
36 otp-version: 22.2
37 elixir-version: 1.9.4
40 + otp-version: '22.2'
41 + elixir-version: '1.9.4'
38 42 - run: mix deps.get
39 43 - run: mix test
40 44 ```
@@ -50,8 +54,8 @@ jobs:
50 54 name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
51 55 strategy:
52 56 matrix:
53 otp: [20.3, 21.3, 22.2]
54 elixir: [1.8.2, 1.9.4]
57 + otp: ['20.3', '21.3', '22.2']
58 + elixir: ['1.8.2', '1.9.4']
55 59 steps:
56 60 - uses: actions/checkout@v2
57 61 - uses: actions/setup-elixir@v1
@@ -87,8 +91,8 @@ jobs:
87 91 - uses: actions/checkout@v2
88 92 - uses: actions/setup-elixir@v1
89 93 with:
90 otp-version: 22.2
91 elixir-version: 1.9.4
94 + otp-version: '22.2'
95 + elixir-version: '1.9.4'
92 96 - run: mix deps.get
93 97 - run: mix test
94 98 ```
modified dist/.github/workflows/test.yml
+9 −5
@@ -12,14 +12,18 @@ jobs:
12 12 strategy:
13 13 matrix:
14 14 pair:
15 + - otp-version: '18.0'
16 + elixir-version: '1.1'
17 + - otp-version: '23.0'
18 + elixir-version: '1.10'
15 19 # Full Versions
16 - otp-version: 22.0
17 elixir-version: 1.9.1
20 + - otp-version: '22.0'
21 + elixir-version: '1.9.1'
18 22 # Semver ranges
19 - otp-version: 21.x
20 elixir-version: <1.9.1
23 + - otp-version: '21.x'
24 + elixir-version: '<1.9.1'
21 25 # Branches
22 - otp-version: 22.0
26 + - otp-version: '22.0'
23 27 elixir-version: master
24 28 steps:
25 29 - uses: actions/checkout@v2
modified test-project/mix.exs
+1 −1
@@ -5,7 +5,7 @@ defmodule Test.MixProject do
5 5 [
6 6 app: :test,
7 7 version: "0.1.0",
8 elixir: "~> 1.9",
8 + elixir: "~> 1.1",
9 9 start_permanent: Mix.env() == :prod,
10 10 deps: deps()
11 11 ]

Parents: 5d6e537 0e4061c