docs: license #4
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
name: SwiftLint | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
lint: | |
name: SwiftLint | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup | |
run: | |
xcodes select 16.1 | |
- name: SwiftLint | |
run: | |
swift package plugin --allow-writing-to-package-directory swiftlint --reporter sarif --output swiftlint.report.sarif | |
- name: Prepare swiftlint.report.sarif | |
if: success() || failure() | |
run: | |
swift PrepareSarifToUpload.swift | |
- name: Upload report | |
uses: github/codeql-action/upload-sarif@v3 | |
if: success() || failure() | |
with: | |
sarif_file: swiftlint.report.sarif |