-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UPDATE] ci.yml include spm and codecov
- Loading branch information
1 parent
38a39f1
commit a718527
Showing
1 changed file
with
19 additions
and
6 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 |
---|---|---|
|
@@ -3,21 +3,34 @@ name: tests | |
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
build-test-cocoapods: | ||
runs-on: macOS-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install Cocoapods | ||
run: | | ||
gem install cocoapods | ||
pod install --project-directory=Example | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_11.app | ||
- name: Run Test | ||
run: | | ||
set -eo pipefail | ||
xcodebuild test -enableCodeCoverage YES -workspace Example/Prettier.swift.xcworkspace -scheme Prettier_Swift_Example -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' | xcpretty | ||
build-test-spm: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: swift test --enable-code-coverage | ||
- uses: michaelhenry/[email protected] | ||
with: | ||
build-path: .build | ||
target: Prettier_swiftPackageTests.xctest | ||
is-spm: true | ||
output: "coverage/lcov.info" | ||
output-artifact-name: "codecov-artifact" | ||
- name: Upload to Codecov | ||
run: | | ||
bash <(curl https://codecov.io/bash) -f "coverage/*.info" | ||
shell: bash | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_11.app | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |