-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (34 loc) · 1.03 KB
/
Copy pathswift.yml
File metadata and controls
40 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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