Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,7 @@ jobs:
lume_macos_contract_trusted:
name: lume macos contract
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on:
- self-hosted
- macOS
- ARM64
- xcode
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
Expand Down
5 changes: 2 additions & 3 deletions test/workflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import YAML from "yaml";
import { describe, expect, test } from "vitest";

const shellSafePublicRunner = ["self-hosted", "linux", "shell-only", "public"];
const macosXcodeRunner = ["self-hosted", "macOS", "ARM64", "xcode"];

describe("CI workflow", () => {
test("runs mutation testing in extended validation and uploads the report", () => {
Expand Down Expand Up @@ -291,7 +290,7 @@ describe("CI workflow", () => {
expect(String(syntaxStep?.run)).toContain("docker/runner-entrypoint.ps1");
});

test("keeps the Lume macOS pool contract on self-hosted macOS runners", () => {
test("keeps the Lume macOS pool contract on GitHub-hosted runners", () => {
const workflow = YAML.parse(
fs.readFileSync(path.resolve(".github/workflows/ci.yml"), "utf8")
) as {
Expand All @@ -310,7 +309,7 @@ describe("CI workflow", () => {
(step) => step.name === "Validate Lume shell scripts"
);

expect(lumeJob["runs-on"]).toEqual(macosXcodeRunner);
expect(lumeJob["runs-on"]).toBe("ubuntu-latest");
expect(String(renderStep?.run)).toContain("pnpm validate-lume-config");
expect(String(renderStep?.run)).toContain("pnpm render-lume-runner-manifest");
expect(String(lifecycleStep?.run)).toContain("pnpm install-lume-project");
Expand Down
Loading