Bump github.com/tuist/xcodeproj from 8.25.0 to 8.25.1 #444
Workflow file for this run
This file contains 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: Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
paths-ignore: ['Docs/**', 'README.md'] | |
jobs: | |
swiftformat: | |
name: SwiftFormat | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: swiftformat . --lint --quiet --reporter github-actions-log | |
swiftlint: | |
name: SwiftLint | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: swiftlint --strict --quiet --reporter github-actions-logging | |
install: | |
name: Install Script | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rugby | |
run: | | |
curl -Ls https://swiftyfinch.github.io/rugby/install.sh | bash | |
chmod +x ~/.rugby/clt/rugby && echo ~/.rugby/clt >> $GITHUB_PATH | |
- run: rugby -h | |
release: | |
name: Build Binary | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: .build | |
key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} | |
restore-keys: ${{ runner.os }}-spm- | |
- name: Build | |
run: swift build -c release | |
unit-tests: | |
name: Unit Tests | |
runs-on: macos-13 | |
env: | |
LCOV_PATH: .build/artifacts/info.lcov | |
BUILD_FOLDER: .build/debug/RugbyPackageTests.xctest/Contents/MacOS/RugbyPackageTests | |
PROFDATA_FOLDER: .build/debug/codecov/default.profdata | |
IGNORE_FILENAME_REGEX: .build|Tests | |
steps: | |
- uses: actions/checkout@v4 | |
- run: brew install xcbeautify | |
- uses: actions/cache@v4 | |
with: | |
path: .build | |
key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} | |
restore-keys: ${{ runner.os }}-spm- | |
- name: Test | |
run: set -o pipefail && swift test --enable-code-coverage 2>&1 | xcbeautify | |
- name: Prepare coverage to upload | |
run: | | |
xcrun llvm-cov export $BUILD_FOLDER \ | |
-instr-profile $PROFDATA_FOLDER > $LCOV_PATH \ | |
--ignore-filename-regex=$IGNORE_FILENAME_REGEX \ | |
-format="lcov" \ | |
--use-color | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: Prepare binary artifact | |
run: | | |
RUGBY_PATH=`swift build --show-bin-path`/rugby | |
strip -rSTx $RUGBY_PATH | |
echo "RUGBY_PATH=$RUGBY_PATH" >> $GITHUB_ENV | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: rugby | |
path: ${{ env.RUGBY_PATH }} | |
smoke-build-frameworks: | |
name: Smoke Build (Frameworks) | |
needs: unit-tests | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: { name: rugby } | |
- run: chmod +x rugby && echo `pwd` >> $GITHUB_PATH | |
- run: rugby --version | |
- uses: actions/cache@v4 | |
with: | |
path: Example/Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('Example/Podfile.lock') }} | |
restore-keys: ${{ runner.os }}-pods- | |
- name: CocoaPods | |
working-directory: ./Example | |
run: pod install --repo-update | |
- name: Rugby | |
working-directory: ./Example | |
run: rugby --prebuild --targets Pods-ExampleFrameworks --output multiline | |
- run: brew install xcbeautify | |
if: always() | |
- name: Beautify logs | |
if: always() | |
run: cat ~/.rugby/logs/+latest/rawBuild.log 2>&1 | xcbeautify --renderer github-actions | |
- name: XcodeBuild Test | |
working-directory: ./Example | |
run: | | |
set -o pipefail && env NSUnbufferedIO=YES xcodebuild test \ | |
-workspace Example.xcworkspace \ | |
-scheme ExampleFrameworks \ | |
-testPlan ExampleFrameworks \ | |
-destination 'platform=iOS Simulator,name=iPhone 14' \ | |
COMPILER_INDEX_STORE_ENABLE=NO \ | |
SWIFT_COMPILATION_MODE=wholemodule \ | |
CODE_SIGNING_ALLOWED=NO \ | |
| xcbeautify --renderer github-actions | |
smoke-build-libs: | |
name: Smoke Build (Libraries) | |
needs: unit-tests | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: { name: rugby } | |
- run: chmod +x rugby && echo `pwd` >> $GITHUB_PATH | |
- run: rugby --version | |
- uses: actions/cache@v4 | |
with: | |
path: Example/Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('Example/Podfile.lock') }} | |
restore-keys: ${{ runner.os }}-pods- | |
- name: CocoaPods | |
working-directory: ./Example | |
run: pod install --repo-update | |
- name: Rugby | |
working-directory: ./Example | |
run: rugby --prebuild --targets Pods-ExampleLibs --output multiline | |
- run: brew install xcbeautify | |
- name: XcodeBuild Test | |
working-directory: ./Example | |
run: | | |
set -o pipefail && env NSUnbufferedIO=YES xcodebuild test \ | |
-workspace Example.xcworkspace \ | |
-scheme ExampleLibs \ | |
-testPlan ExampleLibs \ | |
-destination 'platform=iOS Simulator,name=iPhone 14' \ | |
COMPILER_INDEX_STORE_ENABLE=NO \ | |
SWIFT_COMPILATION_MODE=wholemodule \ | |
CODE_SIGNING_ALLOWED=NO \ | |
| xcbeautify --renderer github-actions | |
smoke-test-multiproj: | |
name: Smoke Test (Multiproj) | |
needs: unit-tests | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: { name: rugby } | |
- run: chmod +x rugby && echo `pwd` >> $GITHUB_PATH | |
- run: rugby --version | |
- uses: actions/cache@v4 | |
with: | |
path: Example/Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('Example/Podfile.lock') }} | |
restore-keys: ${{ runner.os }}-pods- | |
- name: CocoaPods | |
working-directory: ./Example | |
run: MULTIPLE_PROJECTS=true pod install --repo-update | |
- run: brew install xcbeautify | |
- name: Rugby | |
working-directory: ./Example | |
run: | | |
rugby _test --targets-as-regex framework \ | |
--simulator-name 'iPhone 14' \ | |
--testplan-template-path ExampleFrameworks | |
smoke-test: | |
name: Smoke Test (Frameworks) | |
needs: unit-tests | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: { name: rugby } | |
- run: chmod +x rugby && echo `pwd` >> $GITHUB_PATH | |
- run: rugby --version | |
- uses: actions/cache@v4 | |
with: | |
path: Example/Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('Example/Podfile.lock') }} | |
restore-keys: ${{ runner.os }}-pods- | |
- name: CocoaPods | |
working-directory: ./Example | |
run: pod install --repo-update | |
- run: brew install xcbeautify | |
- name: Rugby | |
working-directory: ./Example | |
run: | | |
rugby _test --targets-as-regex framework \ | |
--simulator-name 'iPhone 14' \ | |
--testplan-template-path ExampleFrameworks |