This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
[DX-2500]: Update CODEOWNERS and add deprecation banner #269
Workflow file for this run
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: Unit Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
unit_tests: | |
runs-on: macos-12 | |
steps: | |
- name: Select Xcode 14.0.1 | |
run: sudo xcode-select -s "/Applications/Xcode_14.0.1.app" | |
- name: Repository checkout | |
uses: actions/checkout@v3 | |
- name: Build for iOS | |
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build-for-testing -scheme ImmutableXCore -destination "platform=iOS Simulator,OS=latest,name=iPhone 13" | |
- name: Run iOS tests | |
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -scheme ImmutableXCore -destination "platform=iOS Simulator,OS=latest,name=iPhone 13" | |
- name: Run macOS tests | |
run: set -o pipefail && swift test --enable-code-coverage | |
- name: Parse coverage | |
run: sh ./lcov.sh --build-path .build --target ImmutableXCorePackageTests.xctest --is-spm true --ignore-filename-regex ".build|Tests|Pods|Packages|Plugins|Generated|DerivedData|Signer.swift|ImmutableXHTTPLoggingLevel.swift|Constants.swift|Errors.swift" | |
shell: bash | |
- name: Publish to code climate | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageLocations: | | |
coverage/lcov.info:lcov | |
debug: true |