Skip to content

Coverage

Coverage #103

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: Coverage
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
name: ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
swift: ["5.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
swift-version: ${{ matrix.swift }}
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}