-
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
Showing
2 changed files
with
61 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: SwiftLint | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/swiftlint.yml' | ||
- '.swiftlint.yml' | ||
- '**/*.swift' | ||
|
||
jobs: | ||
SwiftLint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: GitHub Action for SwiftLint | ||
uses: norio-nomura/action-swiftlint@3.2.1 | ||
- name: GitHub Action for SwiftLint | ||
uses: norio-nomura/action-swiftlint@3.2.1 | ||
- name: GitHub Action for SwiftLint (Only files changed in the PR) | ||
uses: norio-nomura/action-swiftlint@3.2.1 | ||
env: | ||
DIFF_BASE: ${{ github.base_ref }} | ||
- name: GitHub Action for SwiftLint (Different working directory) | ||
uses: norio-nomura/action-swiftlint@3.2.1 | ||
env: | ||
WORKING_DIRECTORY: Source |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-14 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Xcode Setup | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '15.2' | ||
|
||
- name: Build | ||
run: | | ||
xcodebuild build -project LiveRecipes.xcodeproj -scheme LiveRecipes clean build -sdk iphoneos CODE_SIGNING_ALLOWED=No | ||
- name: Run tests | ||
run: | | ||
xcrun simctl boot 'iPhone 15 Pro' || sleep 15 | ||
xcodebuild test -project LiveRecipes.xcodeproj -scheme LiveRecipes -sdk iphoneos -destination "platform=iOS Simulator,OS=17.2,name=iPhone 15 Pro" -allowProvisioningUpdates -resultBundlePath TestResults -enableCodeCoverage YES | ||
- uses: kishikawakatsumi/xcresulttool@v1 | ||
with: | ||
path: TestResults.xcresult | ||
if: success() || failure() | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4.0.1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: iOS-vk-education/2023_2_LiveRecipes |