Consolidated loadscene as the main entry point #364
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Formatting Validation | |
| on: | |
| pull_request: | |
| branches: [master, develop] | |
| jobs: | |
| lint: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install SwiftFormat | |
| run: | | |
| SWIFTFORMAT_VERSION="$(awk -F':=' '/^SWIFTFORMAT_VERSION/ { gsub(/[[:space:]]/, "", $2); print $2 }' Makefile)" | |
| if [ -z "$SWIFTFORMAT_VERSION" ]; then | |
| echo "Unable to determine SWIFTFORMAT_VERSION from Makefile" | |
| exit 1 | |
| fi | |
| curl -fsSL -o /tmp/swiftformat.zip \ | |
| "https://github.com/nicklockwood/SwiftFormat/releases/download/${SWIFTFORMAT_VERSION}/swiftformat.zip" | |
| unzip -o /tmp/swiftformat.zip -d /tmp/swiftformat | |
| CURRENT_SWIFTFORMAT="$(command -v swiftformat || true)" | |
| if [ -n "$CURRENT_SWIFTFORMAT" ]; then | |
| INSTALL_PATH="$CURRENT_SWIFTFORMAT" | |
| else | |
| INSTALL_PATH="/usr/local/bin/swiftformat" | |
| fi | |
| sudo install -m 755 /tmp/swiftformat/swiftformat "$INSTALL_PATH" | |
| echo "$(dirname "$INSTALL_PATH")" >> "$GITHUB_PATH" | |
| - name: Show versions | |
| run: | | |
| which swiftformat | |
| swiftformat --version | |
| swift --version | |
| - name: Run SwiftFormat (lint mode) | |
| run: make lint |