From 8b516c2ebee74d4efdb9ef52a59e71864d19be31 Mon Sep 17 00:00:00 2001 From: Jens Pots Date: Sat, 20 Jul 2024 16:07:05 +0200 Subject: [PATCH] fix: compile runners first and use node v20 in gh actions --- .github/workflows/test.yml | 2 +- src/main/kotlin/Main.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aac7662..85ae09c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: - name: Set up NPM uses: actions/setup-node@v2 with: - node-version: '21' + node-version: '20' - name: Build run: ./gradlew installDist --console=plain --warning-mode all diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt index b5f72e8..a76bb00 100644 --- a/src/main/kotlin/Main.kt +++ b/src/main/kotlin/Main.kt @@ -51,7 +51,7 @@ internal suspend fun exec(path: String) { } // For each package, run the preparation command if it exists. - parser.packages.forEach { prepare(it) } + parser.packages.sortedBy { it.runners.size * -1 }.forEach { prepare(it) } // Start the orchestrator. Log.shared.debug("Invoking orchestrator.")