Skip to content

Commit

Permalink
Migrate to macOS-10.15, test codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
p4checo committed May 10, 2021
1 parent c423d95 commit 9f84e1e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:
jobs:
env-details:
name: Environment details
runs-on: macOS-latest
runs-on: macOS-10.15
steps:
- name: xcode version
run: xcodebuild -version -sdk
Expand All @@ -37,7 +37,7 @@ jobs:
build-test:
name: Build and Test
runs-on: macOS-latest
runs-on: macOS-10.15
steps:
- name: git checkout
uses: actions/checkout@v2
Expand All @@ -55,5 +55,12 @@ jobs:
-derivedDataPath "$DERIVED_DATA_PATH" \
-enableCodeCoverage YES | xcpretty -c
- name: codecov upload
run: bash <(curl -s https://codecov.io/bash) -D $DERIVED_DATA_PATH -J "^$SCHEME$"
- name: codecov action
uses: codecov/[email protected]
with:
xcode_package: "'^${{ env.SCHEME }}$'"
xcode_derived_data: ${{ env.DERIVED_DATA_PATH }}
#fail_ci_if_error: true

#- name: codecov upload
# run: bash <(curl -s https://codecov.io/bash) -D $DERIVED_DATA_PATH -J "^$SCHEME$"
2 changes: 1 addition & 1 deletion .github/workflows/pod-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
jobs:
main:
name: Pod Lint
runs-on: macOS-latest
runs-on: macOS-10.15
steps:
- name: git checkout
uses: actions/checkout@v2
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@ name: Release

on:
workflow_run:
workflows: ["CI", "SPM", "CocoaPods Lint"]
types: [completed]
workflows:
- CI
- SwiftPM Integration
- CocoaPods Lint
types:
- completed

jobs:
deploy-github:
name: Deploy Github
runs-on: macOS-latest
runs-on: macOS-10.15
if: startsWith(github.ref, 'refs/tags/') && ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: git checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.workflow_run.head_branch }}

- name: Build Framework
run: |
Expand All @@ -32,11 +38,13 @@ jobs:
deploy-cocoapods:
name: Deploy CocoaPods
runs-on: macOS-latest
runs-on: macOS-10.15
if: startsWith(github.ref, 'refs/tags/') && ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: git checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.workflow_run.head_branch }}

- name: ruby versions
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
jobs:
main:
name: SwiftPM Build
runs-on: macOS-latest
runs-on: macOS-10.15
steps:
- name: git checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 9f84e1e

Please sign in to comment.