[ci] fix test.yaml workflow #4
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: test.yml | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build and Test | |
run: | | |
swift build | |
swift test | |
- name: Generate Coverage Report | |
run: | | |
xcrun xccov view --report <derived-data-path>/Logs/Test/*.xccovreport > coverage.txt |