Skip to content

Commit

Permalink
🔧 Improve CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
olejnjak committed Nov 3, 2023
1 parent 778bcc5 commit 0ef924b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Carthage
runs-on: macos-13
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- uses: AckeeCZ/[email protected]
- name: Build
run: carthage build --no-skip-current --cache-builds --use-xcframeworks
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
name: Swiftlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- name: GitHub Action for SwiftLint
uses: norio-nomura/[email protected]
changelog:
name: Changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- name: Changelog Reminder
uses: peterjgrainger/[email protected]
with:
Expand All @@ -26,7 +26,7 @@ jobs:
name: Podspec
runs-on: macos-13
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- name: Install Bundler dependencies
run: bundle install
- name: Lint podspec
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Upload Carthage binary
runs-on: macos-13
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- uses: AckeeCZ/[email protected]
- name: Build
run: carthage build --no-skip-current --cache-builds --use-xcframeworks
Expand All @@ -33,7 +33,7 @@ jobs:
name: Push podspec to Cocoapods trunk
runs-on: macos-13
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- uses: AckeeCZ/[email protected]
- name: Install gems
run: bundle install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- name: Generate Documentation
uses: SwiftDocOrg/swift-doc@master
with:
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,21 @@ jobs:
name: Run tests
runs-on: macos-13
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4
- uses: AckeeCZ/[email protected]
- name: Install yeetd
run: |
wget https://github.com/biscuitehh/yeetd/releases/download/1.0/yeetd-normal.pkg
sudo installer -pkg yeetd-normal.pkg -target /
yeetd &
- name: Run iOS tests
env:
DEVICE: iPhone 15 Pro Max
run: |
xcrun simctl boot "$DEVICE"
set -o pipefail && xcodebuild test -scheme ACKategories-iOS -resultBundlePath Tests-iOS.xcresult -sdk iphonesimulator -destination "platform=iOS Simulator,name=$DEVICE,OS=latest" ONLY_ACTIVE_ARCH=YES | xcpretty
set -o pipefail && xcodebuild test -scheme ACKategories-iOS -resultBundlePath Tests-iOS.xcresult -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 15 Pro Max,OS=latest" ONLY_ACTIVE_ARCH=YES | xcpretty
- uses: actions/upload-artifact@v3
if: failure()
with:
name: Tests-iOS.xcresult
path: Tests-iOS.xcresult
- name: Run macOS tests
run: set -o pipefail && xcodebuild test -scheme ACKategoriesCore -resultBundlePath Tests-macOS.xcresult -destination 'platform=OS X,arch=x86_64' | xcpretty
- uses: actions/upload-artifact@v3
if: failure()
with:
name: Tests-macOS.xcresult
path: Tests-macOS.xcresult

0 comments on commit 0ef924b

Please sign in to comment.