Added workflow for creating documentation pages #24
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
# 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: Build and test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: swift build | |
- name: Run tests | |
run: swift test --enable-test-discovery --enable-code-coverage | |
- name: Prepare Code Coverage | |
run: xcrun llvm-cov export -format="lcov" .build/debug/TibberSwiftPackageTests.xctest/Contents/MacOS/TibberSwiftPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: ppeelen/TibberSwift |