Skip to content
Merged
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
42 changes: 37 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -52,16 +52,48 @@ 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)
uses: ./
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