Update PSL (#14) #36
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 build a Swift project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
name: Swift | |
on: | |
push: | |
paths: | |
- ".github/workflows/**" | |
- "**/*.swift" | |
- "**/*.dat" | |
pull_request: | |
paths: | |
- ".github/workflows/**" | |
- "**/*.swift" | |
- "**/*.dat" | |
jobs: | |
build-mac: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: swift build -v | |
- name: Run tests | |
run: swift test -v --enable-code-coverage | |
- name: Convert code coverage report for Codecov | |
run: xcrun llvm-cov export -format="lcov" .build/debug/TLDExtractPackageTests.xctest/Contents/MacOS/TLDExtractPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: swift build -v | |
- name: Run tests | |
run: swift test -v |