From 341ac87d70ddd488f39fdefdbfd5a9f4300ab593 Mon Sep 17 00:00:00 2001 From: Andrew Roan Date: Fri, 26 Jan 2024 13:47:53 -0600 Subject: [PATCH 1/5] Update test workflow 3.0-preview-update-workflow --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19752a3..dbe8460 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 From c8fa79f29a09dd5d3d802149d2919a087b090f0b Mon Sep 17 00:00:00 2001 From: Andrew Roan Date: Fri, 26 Jan 2024 13:48:09 -0600 Subject: [PATCH 2/5] Update dependabot config 3.0-preview-update-workflow --- .github/dependabot.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ff4e2b0..044b386 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,7 +3,5 @@ updates: - package-ecosystem: "swift" directory: "/" schedule: - interval: "weekly" - reviewers: - - "roanutil" + interval: "daily" versioning-strategy: "increase-if-necessary" From ad8a0ceccfedaa5eb745a9a71c52e5f30f35fd0b Mon Sep 17 00:00:00 2001 From: Andrew Roan Date: Fri, 26 Jan 2024 13:56:47 -0600 Subject: [PATCH 3/5] Fix partial update of checkout action 3.0-preview-update-workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbe8460..1a09aaa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 From d74d39cce75cf0b744ddfe0e4f38357a9e0d04d5 Mon Sep 17 00:00:00 2001 From: Andrew Roan Date: Fri, 26 Jan 2024 14:02:34 -0600 Subject: [PATCH 4/5] Fix missing token for codecov 3.0-preview-update-workflow --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a09aaa..4eff204 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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) From dac025eb90f4ba5d43912c4983a4e178ec395dcf Mon Sep 17 00:00:00 2001 From: Andrew Roan Date: Fri, 26 Jan 2024 14:10:45 -0600 Subject: [PATCH 5/5] Add CodeQl workflow config 3.0-preview-update-workflow --- .github/workflows/codeql.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..8dc1383 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -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 \ No newline at end of file