Add tests for Ubuntu 26 runners (#465)

Add test coverage for Ubuntu 26.04 runners
This commit is contained in:
John Downey
2026-06-30 15:08:45 -05:00
committed by GitHub
parent b59f4962e3
commit fa471919e3
2 changed files with 118 additions and 0 deletions
+19
View File
@@ -29,6 +29,7 @@ const matrix = {
'ubuntu-20.04': parseBuild('test/otp/ubuntu-20.04/builds.txt'),
'ubuntu-22.04': parseBuild('test/otp/ubuntu-22.04/builds.txt'),
'ubuntu-24.04': parseBuild('test/otp/ubuntu-24.04/builds.txt'),
'ubuntu-26.04': parseBuild('test/otp/ubuntu-26.04/builds.txt'),
windows: parseReleases('test/otp/releases.json'),
'macos-aarch64': parseCsv('test/otp/macos/aarch64-apple-darwin.csv'),
'macos-x86_64': parseCsv('test/otp/macos/x86_64-apple-darwin.csv'),
@@ -188,6 +189,14 @@ describe('.getOTPVersion(_) - Erlang', () => {
assert.deepStrictEqual(got, expected)
simulateInput('version-type', before)
before = simulateInput('version-type', 'strict')
spec = '27.0'
osVersion = 'ubuntu-26.04'
expected = 'OTP-27.0'
got = await setupBeam.getOTPVersion(spec, osVersion)
assert.deepStrictEqual(got, expected)
simulateInput('version-type', before)
before = simulateInput('version-type', 'strict')
spec = '25.3.2.1'
osVersion = 'ubuntu-20.04'
@@ -946,6 +955,16 @@ describe('.getVersionFromSpec(_)', () => {
got = setupBeam.getVersionFromSpec(spec, matrix.otp['ubuntu-24.04'])
assert.deepStrictEqual(got, expected)
spec = '> 0'
expected = 'OTP-29.0.2'
got = setupBeam.getVersionFromSpec(spec, matrix.otp['ubuntu-26.04'])
assert.deepStrictEqual(got, expected)
spec = 'latest'
expected = 'OTP-29.0.2'
got = setupBeam.getVersionFromSpec(spec, matrix.otp['ubuntu-26.04'])
assert.deepStrictEqual(got, expected)
spec = 'latest'
expected = '27.0-rc3'
got = setupBeam.getVersionFromSpec(spec, matrix.otp.windows)