fix: attributes thread safety issue (#73) #333
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Swift SDK Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
runs-on: macos-13-xl | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run test | |
run: xcodebuild test -scheme aws-solution-clickstream-swift -sdk iphonesimulator -derivedDataPath .build/ -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=latest' -enableCodeCoverage YES | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]} | |
- name: Convert to json format | |
run: | | |
cd .build/Build/ProfileData | |
cd $(ls -d */|head -n 1) | |
directory=${PWD##*/} | |
pathCoverage=.build/Build/ProfileData/${directory}/Coverage.profdata | |
cd ../../../../ | |
xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage .build/Build/Products/Debug-iphonesimulator/Clickstream.o > .build/info.lcov | |
- name: Upload Test Report | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
name: report | |
files: .build/info.lcov | |
swift: true | |