Fix typos #262
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
# This workflow will trigger on pull-request to main | |
# It will run the Swift Package tests, output the code coverage and upload it to Codecov. | |
name: Unit Tests | |
on: | |
# Trigger the workflow on push pull request or manually | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
run_tests: | |
name: Run tests and Get Code Coverage | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run tests | |
run: swift test --enable-code-coverage | |
- name: Test coverage | |
uses: maxep/spm-lcov-action@0.3.1 | |
with: | |
output-file: ./coverage/lcov.info | |
- name: Upload coverage to Codecov | |
if: ${{ github.event_name == 'push' }} | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./coverage/lcov.info | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: unittests | |
env_vars: SWIFT | |
name: codecov-${{ github.head_ref }}-${{ steps.date.outputs.date }} | |
fail_ci_if_error: true |