Skip to content

Bump codecov/codecov-action from 3 to 4 (#195) #537

Bump codecov/codecov-action from 3 to 4 (#195)

Bump codecov/codecov-action from 3 to 4 (#195) #537

Workflow file for this run

name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CI_XCODE: '/Applications/Xcode_15.0.app/Contents/Developer'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
xcode-test-ios:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Use multiple cores
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
- name: Build
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -testPlan ParseCareKit -scheme ParseCareKit -destination platform\=iOS\ Simulator,name\=iPhone\ 14\ Pro\ Max -derivedDataPath DerivedData clean test | xcpretty
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
- name: Prepare codecov
uses: sersoft-gmbh/swift-coverage-action@v4
id: coverage-files
with:
target-name-filter: '^ParseCareKit$'
format: lcov
search-paths: ./DerivedData
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
env_vars: IOS
token: ${{ secrets.CODECOV_TOKEN }}
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
xcode-test-macos:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Use multiple cores
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
- name: Build
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -testPlan ParseCareKit -scheme ParseCareKit -destination platform\=macOS -derivedDataPath DerivedData clean test | xcpretty
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
- name: Prepare codecov
uses: sersoft-gmbh/swift-coverage-action@v4
id: coverage-files
with:
target-name-filter: '^ParseCareKit$'
format: lcov
search-paths: ./DerivedData
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
env_vars: MACOS
token: ${{ secrets.CODECOV_TOKEN }}
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
xcode-build-watchos:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Use multiple cores
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
- name: Build
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme ParseCareKit -destination platform\=watchOS\ Simulator,name\=Apple\ Watch\ Series\ 6\ \(44mm\) | xcpretty
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
spm-test:
timeout-minutes: 15
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Use multiple cores
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
- name: Build-Test
run: swift build -v
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}
docs:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Use multiple cores
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
- name: Generate Docs
run: set -o pipefail && env NSUnbufferedIO=YES Scripts/generate-documentation
env:
DEVELOPER_DIR: ${{ env.CI_XCODE }}