Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0 preview update workflow #24

Merged
merged 5 commits into from
Feb 9, 2024
Merged
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
4 changes: 1 addition & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ updates:
- package-ecosystem: "swift"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "roanutil"
interval: "daily"
versioning-strategy: "increase-if-necessary"
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: macos-13
environment: default
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Format lint
run: swiftformat --lint .
- name: Lint
Expand All @@ -25,12 +25,12 @@ jobs:
matrix:
include:
- os: macos-13
xcode: 14.3 # Swift 5.8
xcode: 14.3.1 # Swift 5.8.1
- os: macos-13
xcode: '15.0' # Swift 5.9
xcode: '15.2' # Swift 5.9.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run Tests
Expand All @@ -39,4 +39,5 @@ jobs:
run: xcrun llvm-cov export -format="lcov" .build/debug/CoreDataRepositoryPackageTests.xctest/Contents/MacOS/CoreDataRepositoryPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true # optional (default = false)
29 changes: 29 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "CodeQL"

on:
push:
branches: [ "main", "3.0-preview" ]
pull_request:
branches: [ "main", "3.0-preview" ]

jobs:
run-codeql-linux:
name: Run CodeQL on macOS
runs-on: macos-latest
permissions:
security-events: write

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: swift

- name: Build
run: swift build

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