-
Notifications
You must be signed in to change notification settings - Fork 42
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
1 parent
1d286d8
commit 71747c7
Showing
2 changed files
with
93 additions
and
98 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,93 @@ | ||
name: CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'refs/heads/*' | ||
- '!refs/tags/*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
paths: | ||
- '*' | ||
- '!README.md' | ||
- '!LICENSE' | ||
- '!CODE_OF_CONDUCT.md' | ||
- '!CONTRIBUTING.md' | ||
- '!website/**' | ||
|
||
jobs: | ||
danger-swiftlint: | ||
name: Danger SwiftLint | ||
continue-on-error: true | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install SwiftLint and Danger Swift | ||
run: | | ||
brew install swiftlint | ||
brew install danger/tap/danger-swift | ||
export DANGER_GITHUB_API_TOKEN='${{ secrets.GH_TOKEN }}' | ||
- name: Run Danger SwiftLint | ||
run: danger-swift ci | ||
|
||
pod-lint: | ||
name: PodLint | ||
needs: danger-swiftlint | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install CocoaPods | ||
run: pod install | ||
|
||
- name: Lint pod library | ||
run: pod lib lint --skip-tests --platforms=macos,ios,tvos | ||
|
||
build: | ||
name: Build | ||
needs: danger-swiftlint | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install CocoaPods | ||
run: pod install | ||
|
||
- name: Build Xcode App | ||
uses: actions/xcode@v3 | ||
with: | ||
actions: build | ||
sdk: iphoneos | ||
scheme: AppleReminders | ||
configuration: Debug | ||
xcWorkspacePath: Example/AppleReminders.xcworkspace | ||
xcodeVersion: default | ||
|
||
test: | ||
name: Test | ||
needs: build | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install CocoaPods | ||
run: pod install | ||
|
||
- name: Running tests | ||
uses: actions/xcode@v3 | ||
with: | ||
actions: test | ||
sdk: iphonesimulator | ||
configuration: Debug | ||
xcWorkspacePath: Tests/Tests.xcworkspace | ||
scheme: Tests | ||
xcodeVersion: default | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file was deleted.
Oops, something went wrong.