mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-22 22:56:07 +00:00
fix: broken tests (mostly out of stuff being outdated) (#468)
* Update rebar3's releases.json per current results * Up rebar3 test versions * Retire windows-2019 * Add "support" to win25-vs2026 next to win25 windows-2025-vs2026 label was previously a beta testing tag but is now the production default * Fix rebar3 test releases.json * Bump per CI results * Fix per CI results (I checked in releases.json) * Adapt to Ubuntu 26.04 (no -arm) * Consider Ubuntu ARM variants in execution * Typo * Bump it to the minimum expect value * Bump it to the minimum expect value * Tweak ARM tests: drop windows-11 * Fix per prior test results * Try testing OTP to update README * Improve guarantees on the README (via tests) * Improve guarantees on the README (via tests) Trust tests in intervals (if first Ok and last Ok the middle Ok) * Add further constraints for testing (per README) * Remove moving-target test This is prone to fail for an issue with OTP's main branch but it shouldn't affect the action, so we remove it * Respect Hex's boundaries * Make it consistent (no need for .0 in versioning) * Restrict it a bit We keep the README as-is, since there's nothing preventing us from thinking it works as stated, but we move our tests forward * Make it easier to follow * Fix it per stalled CI * Fix it: no macos-16; it's macos-26 * Deprecate macos-13 Per https://github.blog/changelog/2025-07-11-upcoming-changes-to-macos-hosted-runners-macos-latest-migration-and-xcode-support-policy-updates/#macos-13-is-closing-down * Make ImageOS support more explicit * Move forward
This commit is contained in:
committed by
GitHub
parent
3985c7c047
commit
6e9312bce0
+869
-72
File diff suppressed because it is too large
Load Diff
+11
-11
@@ -273,7 +273,7 @@ describe('.getOTPVersion(_) - Erlang', () => {
|
||||
assert.deepStrictEqual(got, expected)
|
||||
|
||||
spec = '23.0'
|
||||
osVersion = 'windows-2019'
|
||||
osVersion = 'windows-2022'
|
||||
expected = '23.0.4'
|
||||
got = await setupBeam.getOTPVersion(spec, osVersion)
|
||||
assert.deepStrictEqual(got, expected)
|
||||
@@ -294,7 +294,7 @@ describe('.getOTPVersion(_) - Erlang', () => {
|
||||
assert.deepStrictEqual(got, expected)
|
||||
|
||||
spec = '23.0'
|
||||
osVersion = 'windows-2019'
|
||||
osVersion = 'windows-2022'
|
||||
expected = '23.0.4'
|
||||
got = await setupBeam.getOTPVersion(spec, osVersion)
|
||||
assert.deepStrictEqual(got, expected)
|
||||
@@ -625,9 +625,9 @@ describe('.getOTPVersion(_) - Elixir', () => {
|
||||
assert.deepStrictEqual(got, expected)
|
||||
|
||||
before = simulateInput('version-type', 'strict')
|
||||
spec = '1.17'
|
||||
spec = '1.19'
|
||||
otpVersion = 'master'
|
||||
expected = 'v1.17-otp-27'
|
||||
expected = 'v1.19-otp-28'
|
||||
await setupBeam.installOTP(otpVersion)
|
||||
got = await setupBeam.getElixirVersion(spec, otpVersion)
|
||||
assert.deepStrictEqual(got, expected)
|
||||
@@ -695,18 +695,18 @@ describe('.getOTPVersion(_) - rebar3', () => {
|
||||
let spec
|
||||
|
||||
it('returns the expected value', async () => {
|
||||
spec = '3.10.x'
|
||||
expected = '3.10.0'
|
||||
spec = '3.26.x'
|
||||
expected = '3.26.0'
|
||||
got = await setupBeam.getRebar3Version(spec)
|
||||
assert.deepStrictEqual(got, expected)
|
||||
|
||||
spec = '3.11'
|
||||
expected = '3.11.1'
|
||||
spec = '3.25'
|
||||
expected = '3.25.1'
|
||||
got = await setupBeam.getRebar3Version(spec)
|
||||
assert.deepStrictEqual(got, expected)
|
||||
|
||||
spec = '3.10'
|
||||
expected = '3.10.0'
|
||||
spec = '3.26'
|
||||
expected = '3.26.0'
|
||||
got = await setupBeam.getRebar3Version(spec)
|
||||
assert.deepStrictEqual(got, expected)
|
||||
})
|
||||
@@ -972,7 +972,7 @@ describe('.getVersionFromSpec(_)', () => {
|
||||
assert.deepStrictEqual(got, expected)
|
||||
|
||||
spec = 'latest'
|
||||
expected = '3.23.0'
|
||||
expected = '3.27.0'
|
||||
got = setupBeam.getVersionFromSpec(spec, matrix.rebar3)
|
||||
assert.deepStrictEqual(got, expected)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user