Skip to content

chore(deps): bump actions/checkout from 3.6.0 to 4.1.1 (#71) #188

chore(deps): bump actions/checkout from 3.6.0 to 4.1.1 (#71)

chore(deps): bump actions/checkout from 3.6.0 to 4.1.1 (#71) #188

Workflow file for this run

---
name: Swift
on:
push:
branches: [
main
]
pull_request:
branches: [
main
]
permissions:
contents: read
jobs:
build:
name: "WMATAUI unit tests"
strategy:
matrix:
destination: [
"'platform=macOS,variant=Mac Catalyst'",
"'platform=macOS'",
"'platform=tvOS Simulator,name=Apple TV'",
"'platform=iOS Simulator,name=iPhone 8'",
"'platform=watchOS Simulator,name=Apple Watch Series 5 (40mm)'"
]
runs-on: macos-12
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 50
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
#- name: Set Xcode version
# run: sudo xcode-select -s /Applications/Xcode_13.2.1.app
- name: Build
# Using swift would be preferred, but using xcodebuild as it allows
# the specification of variants, which the swift command does not
run: xcodebuild build -scheme WMATAUI -destination ${{ matrix.destination }}
# run: swift build -v
- name: Run tests
# Using swift would be preferred, but using xcodebuild as it allows
# the specification of variants, which the swift command does not
run: |
xcodebuild test -scheme WMATAUI -destination ${{ matrix.destination }} -enableCodeCoverage YES
xcrun llvm-cov export --format="lcov" --instr-profile=$( echo ~/Library/Developer/Xcode/DerivedData/WMATAUI-*/Build/ProfileData/*/Coverage.profdata ) --object=$( echo ~/Library/Developer/Xcode/DerivedData/WMATAUI-*/Build/Products/Debug*/WMATAUI.o ) > coverage.lcov
# run: swift test -v
- name: Upload coverage to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
files: coverage.lcov
fail_ci_if_error: true
verbose: true