-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ogulcan keskin
committed
Sep 16, 2023
1 parent
9f90d4b
commit 58e4b22
Showing
1 changed file
with
20 additions
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,29 @@ on: | |
|
||
jobs: | ||
test: | ||
runs-on: macos-11 | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Run Tests (No Cache) | ||
if: steps.setup.outputs.cache-hit != 'true' | ||
run: bundle exec fastlane tests | ||
|
||
|
||
|
||
name: Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- development | ||
workflow_dispatch: | ||
|
||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
jobs: | ||
test: | ||
runs-on: macos-11 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
|
||
|
@@ -29,23 +40,8 @@ jobs: | |
- name: Install gems | ||
run: bundle install | ||
|
||
- name: Swift Packages Cache | ||
uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: | | ||
Build/SourcePackages | ||
Build/Build/Products | ||
key: ${{ runner.os }}-deps-v1-${{ hashFiles('BILDsolid.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} | ||
restore-keys: ${{ runner.os }}-deps-v1- | ||
|
||
- name: Run Tests (No Cache) | ||
if: steps.setup.outputs.cache-hit != 'true' | ||
run: bundle exec fastlane unit_test | ||
|
||
- name: Run Tests (Cache) | ||
if: steps.setup.outputs.cache-hit == 'true' | ||
run: bundle exec fastlane unit_test skip_package_dependencies_resolution:true | ||
run: bundle exec fastlane tests | ||
|
||
|
||
|