Skip to content

Commit

Permalink
Add integration test for latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Schultzer committed Jul 13, 2024
1 parent d2ccea2 commit 03c7809
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
fail-fast: false
matrix:
combo:
- otp-version: 'latest'
elixir-version: 'latest'
rebar3-version: 'latest'
os: 'ubuntu-latest'
- otp-version: '27'
elixir-version: 'v1.17.0'
rebar3-version: '3.23'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
fail-fast: false
matrix:
combo:
- otp-version: 'latest'
elixir-version: 'latest'
rebar3-version: 'latest'
os: 'windows-latest'
- otp-version: '27'
elixir-version: 'v1.17.0'
rebar3-version: '3.23'
Expand Down
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9536,6 +9536,8 @@ function getVersionFromSpec(spec0, versions0) {
// If `version-type: strict` or version is RC, we obtain it directly
version = versions0[spec]
}
} else if (spec0 === 'latest') {
version = versions0[versions0.latest]
} else if (rangeMax !== null) {
// Otherwise, we compare alt. versions' semver ranges to this version, from highest to lowest
const thatVersion = spec
Expand Down Expand Up @@ -9604,7 +9606,7 @@ function isRC(ver) {
}

function isKnownBranch(ver) {
return ['main', 'master', 'maint', 'latest'].includes(ver)
return ['main', 'master', 'maint'].includes(ver)
}

function githubARMRunnerArchs() {
Expand Down
4 changes: 3 additions & 1 deletion src/setup-beam.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ function getVersionFromSpec(spec0, versions0) {
// If `version-type: strict` or version is RC, we obtain it directly
version = versions0[spec]
}
} else if (spec0 === 'latest') {
version = versions0[versions0.latest]
} else if (rangeMax !== null) {
// Otherwise, we compare alt. versions' semver ranges to this version, from highest to lowest
const thatVersion = spec
Expand Down Expand Up @@ -504,7 +506,7 @@ function isRC(ver) {
}

function isKnownBranch(ver) {
return ['main', 'master', 'maint', 'latest'].includes(ver)
return ['main', 'master', 'maint'].includes(ver)
}

function githubARMRunnerArchs() {
Expand Down

0 comments on commit 03c7809

Please sign in to comment.