Skip to content

README (#138)

README (#138) #365

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:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-26
steps:
- uses: actions/checkout@v4
- name: Install SwiftLint
run: brew install swiftlint
- name: Lint
run: swiftlint lint --strict --quiet
- name: Build
run: swift build -v
- name: Test
run: swift test --enable-code-coverage
- id: coverage
uses: codefiesta/swift-coverage-action@0.0.4
- name: badge
# Only run the badge update if we are pushing to main
if: github.ref == 'refs/heads/main'
uses: schneegans/dynamic-badges-action@v1.7.0
with:
auth: ${{secrets.GIST_SECRET}}
gistID: 87655b6e3c89b9198287b2fefbfa641f
filename: oauthkit-coverage.json
label: Coverage
message: ${{steps.coverage.outputs.percentage}}%
color: white