Skip to content

Enable mTLS client identity on watchOS (#108) #467

Enable mTLS client identity on watchOS (#108)

Enable mTLS client identity on watchOS (#108) #467

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
HOMEBREW_NO_INSTALL_CLEANUP: TRUE
jobs:
lint:
runs-on: macos-15
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Dependencies
run: brew bundle
- name: "Run Linting"
run: make lint
test:
runs-on: macos-15
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Dependencies
run: brew bundle
- name: Run Tests
run: make test
- name: Generate lcov
# https://www.reddit.com/r/swift/comments/hr93xg/code_coverage_for_swiftpm_packages/
run: |
BIN_PATH="$(swift build --show-bin-path)"
XCTEST_PATH="$(find ${BIN_PATH} -name '*.xctest')"
COV_BIN=$XCTEST_PATH
if [[ "$OSTYPE" == "darwin"* ]]; then
f="$(basename $XCTEST_PATH .xctest)"
COV_BIN="${COV_BIN}/Contents/MacOS/$f"
fi
xcrun llvm-cov export -format="lcov" \
"${COV_BIN}" \
-instr-profile=.build/debug/codecov/default.profdata \
-ignore-filename-regex=".build|Tests"\ > info.lcov
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
name: Upload Code Coverage
with:
file: ./info.lcov
token: ${{ secrets.CODECOV_TOKEN }}