Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 23 additions & 27 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,38 @@ on:
pull_request:
branches: [ "main" ]

permissions:
contents: read
security-events: write

# Allow one concurrent scan
# Allow one concurrent deployment
concurrency:
group: "codeql-scan"
group: "scanning"
cancel-in-progress: true


jobs:
analyze:
name: Analyze Swift with CodeQL
runs-on: macos-14
name: Analyze
runs-on: macos-latest
permissions:
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'swift' ]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Cache Swift build artifacts
uses: actions/cache@v4
with:
path: .build
key: swift-build-${{ runner.os }}-${{ hashFiles('**/*.swift') }}

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}

- name: Build
run: swift build --configuration release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Build
run: swift build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

- name: Swiftlint
run: swiftlint
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:

jobs:
SwiftLint:
runs-on: macOS-14
runs-on: macOS-15
steps:
- uses: actions/checkout@v4
- name: Switch Xcode 🔄
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

jobs:
macos-unit:
runs-on: macOS-13
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Switch Xcode 🔄
Expand All @@ -27,7 +27,7 @@ jobs:
uses: sersoft-gmbh/swift-coverage-action@v4
id: coverage-files
- name: Publish Coverage to Codecov
uses: codecov/codecov-action@v4.0.1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
linux-unit:
Expand Down
10 changes: 10 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,13 @@ let package = Package(
)
]
)

#if os(macOS)
// Add the documentation compiler plugin if possible
package.dependencies.append(
.package(url: "https://github.com/lukepistrol/SwiftLintPlugin", from: "0.52.4")
)
package.targets.first?.plugins?.append(
.plugin(name: "SwiftLint", package: "SwiftLintPlugin")
)
#endif
Loading