Skip to content

Update PSL (#14)

Update PSL (#14) #36

Workflow file for this run

# 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