Test Erlang/OTP 26 + Elixir 1.14 on top Windows (#191)

* Add more stuff to test on

* Tweak our debugging (more verbose when the runner is in debug mode)

* Hopefully make it easier to debug

* Have the distribution work :-)

* Adapt to a better reality
This commit is contained in:
Paulo F. Oliveira
2023-06-24 17:27:31 +01:00
committed by GitHub
parent 61e01a43a5
commit 145c80cf85
6 changed files with 190 additions and 46 deletions
+12 -9
View File
@@ -199,7 +199,7 @@ async function testElixirVersions() {
before = simulateInput('version-type', 'strict')
spec = '1.14.0'
otpVersion = 'master'
otpVersion = 'main'
expected = 'v1.14.0'
got = await setupBeam.getElixirVersion(spec, otpVersion, hexMirrors)
assert.deepStrictEqual(got, expected)
@@ -213,6 +213,14 @@ async function testElixirVersions() {
assert.deepStrictEqual(got, expected)
simulateInput('version-type', before)
before = simulateInput('version-type', 'strict')
spec = 'v1.11.0-rc.0-otp-23'
otpVersion = 'OTP-23'
expected = 'v1.11.0-rc.0-otp-23'
got = await setupBeam.getElixirVersion(spec, otpVersion, hexMirrors)
assert.deepStrictEqual(got, expected)
simulateInput('version-type', before)
before = simulateInput('version-type', 'strict')
spec = 'v1.11.0'
otpVersion = '22.3.4.2'
@@ -309,7 +317,7 @@ async function testGetVersionFromSpec() {
'22.3.4.9.1',
'22.3.4.12.1',
'22.3.4.10.1',
'master',
'main',
'v11.11.0-rc.0-otp-23',
'22.3.4.2',
]
@@ -396,17 +404,12 @@ async function testGetVersionFromSpec() {
assert.deepStrictEqual(got, expected)
before = simulateInput('version-type', 'strict')
spec = 'master'
expected = 'master'
spec = 'main'
expected = 'main'
got = setupBeam.getVersionFromSpec(spec, versions)
assert.deepStrictEqual(got, expected)
simulateInput('version-type', before)
spec = 'master'
expected = 'master'
got = setupBeam.getVersionFromSpec(spec, versions)
assert.deepStrictEqual(got, expected)
before = simulateInput('version-type', 'strict')
spec = '22.3.4.2'
expected = '22.3.4.2'