fix(KAN-58): select macOS runner from repository variable
CI/CD / preconditions (pull_request) Successful in 1s
macOS checks / Native Rust tests and unsigned build (pull_request) Canceled after 36s
Native JavaScript checks / Native launcher and release tests (pull_request) Canceled after 42s
CI/CD / Publish immutable image (pull_request) Canceled after 0s
CI/CD / test_and_check_app (pull_request) Canceled after 14s
CI/CD / preconditions (pull_request) Successful in 1s
macOS checks / Native Rust tests and unsigned build (pull_request) Canceled after 36s
Native JavaScript checks / Native launcher and release tests (pull_request) Canceled after 42s
CI/CD / Publish immutable image (pull_request) Canceled after 0s
CI/CD / test_and_check_app (pull_request) Canceled after 14s
This commit is contained in:
@@ -86,13 +86,22 @@ test('release selection succeeds using Git alone without an administrative API t
|
||||
GITHUB_API_URL: 'http://127.0.0.1:1',
|
||||
});
|
||||
assert.equal(result.status, 0, result.stderr);
|
||||
assert.equal(
|
||||
result.output,
|
||||
`commit=${f.commit}\ntag=macos-v1.2.3\nrunner=macos-local\n`,
|
||||
);
|
||||
assert.equal(result.output, `commit=${f.commit}\ntag=macos-v1.2.3\n`);
|
||||
assert.equal(f.git(f.checkout, 'rev-parse', 'HEAD'), f.commit);
|
||||
});
|
||||
|
||||
test('macOS scheduling uses a repository variable while release steps remain gated by preparation', () => {
|
||||
const release = workflow.split('\n release:\n')[1];
|
||||
const runner = release.match(/^ {4}runs-on: (.+)$/m)?.[1];
|
||||
assert.equal(runner, '${{ vars.MACOS_RUNNER }}');
|
||||
assert.match(release, /^ {4}needs: prepare$/m);
|
||||
assert.match(release, /ref: \$\{\{ needs\.prepare\.outputs\.commit \}\}/);
|
||||
assert.match(
|
||||
release,
|
||||
/RELEASE_TAG: \$\{\{ needs\.prepare\.outputs\.tag \}\}/,
|
||||
);
|
||||
});
|
||||
|
||||
test('manual release on main accepts an existing tag without moving it', (t) => {
|
||||
const f = fixture(t);
|
||||
const result = f.run({
|
||||
|
||||
Reference in New Issue
Block a user