From 0a72bf03f6f611bdf9f7b41b73c48f2ff744ef04 Mon Sep 17 00:00:00 2001 From: Alberto De Bortoli Date: Tue, 10 Mar 2026 14:14:48 +0000 Subject: [PATCH 1/2] Update version used in test workflow to 0.7.0 --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 62156f4..20d2289 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,14 +29,14 @@ jobs: - name: Setup Luca (pinned, no tools) uses: ./ with: - version: "0.5.0" + version: "0.7.0" - name: Verify pinned version is installed run: | luca --version INSTALLED=$(luca --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1) - if [ "$INSTALLED" != "0.5.0" ]; then - echo "Expected 0.5.0, got $INSTALLED" + if [ "$INSTALLED" != "0.7.0" ]; then + echo "Expected 0.7.0, got $INSTALLED" exit 1 fi From bf040a283f0ff24bb9fa6cc604fe7fb93e7430c3 Mon Sep 17 00:00:00 2001 From: Alberto De Bortoli Date: Tue, 10 Mar 2026 14:23:05 +0000 Subject: [PATCH 2/2] Verify tools details in test workflow --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 20d2289..302fa77 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,10 +52,15 @@ jobs: cat > Lucafile <<'EOF' --- tools: + - name: SwiftLint + binaryPath: SwiftLintBinary.artifactbundle/swiftlint-0.61.0-macos/bin/swiftlint + version: 0.61.0 + url: https://github.com/realm/SwiftLint/releases/download/0.61.0/SwiftLintBinary.artifactbundle.zip - name: Tuist binaryPath: tuist version: 4.80.0 url: https://github.com/tuist/tuist/releases/download/4.80.0/tuist.zip + EOF - name: Setup Luca (with tools) @@ -63,5 +68,32 @@ jobs: with: spec: Lucafile - - name: Verify tool is on PATH - run: tuist version + - name: Verify tools are on PATH + run: | + TUIST_VERSION=$(tuist version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1) + if [ "$TUIST_VERSION" != "4.80.0" ]; then + echo "Expected tuist 4.80.0, got $TUIST_VERSION" + exit 1 + fi + + SWIFTLINT_VERSION=$(swiftlint version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1) + if [ "$SWIFTLINT_VERSION" != "0.61.0" ]; then + echo "Expected swiftlint 0.61.0, got $SWIFTLINT_VERSION" + exit 1 + fi + + - name: Verify tools are symlinked to tools directory + run: | + LINK=$(readlink .luca/tools/tuist) + EXPECTED="$HOME/.luca/tools/Tuist/4.80.0/tuist" + if [ "$LINK" != "$EXPECTED" ]; then + echo "Expected symlink target '$EXPECTED', got '$LINK'" + exit 1 + fi + + LINK=$(readlink .luca/tools/swiftlint) + EXPECTED="$HOME/.luca/tools/SwiftLint/0.61.0/SwiftLintBinary.artifactbundle/swiftlint-0.61.0-macos/bin/swiftlint" + if [ "$LINK" != "$EXPECTED" ]; then + echo "Expected symlink target '$EXPECTED', got '$LINK'" + exit 1 + fi