Skip to content

update xcodeproj dependency to support xcode 16 format #8

update xcodeproj dependency to support xcode 16 format

update xcodeproj dependency to support xcode 16 format #8

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: XcodeTargets Unit Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: SwiftyLab/setup-swift@latest
- name: Run tests with coverage
run: swift test --enable-code-coverage
- name: Generate coverage report (lcov)
run: |
set -euo pipefail
BIN_PATH="$(swift build --show-bin-path)"
TEST_BUNDLE="${BIN_PATH}/XcodeTargetsPackageTests.xctest/Contents/MacOS/XcodeTargetsPackageTests"
PROF_DATA="${BIN_PATH}/codecov/default.profdata"
xcrun llvm-cov export \
-format=lcov \
"${TEST_BUNDLE}" \
-instr-profile "${PROF_DATA}" \
> info.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: michaelversus/XcodeTargets
files: info.lcov
fail_ci_if_error: true
verbose: true