-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update JamesIves/github-pages-deploy-action action to v4.6.9 * Update codecov/codecov-action action to v5 * Update dependency nicklockwood/SwiftFormat to v0.55.0 * Migrate codecov * Update macOS matrix * Update macOS job strategy matrix * Rename jobs --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2403d96
commit bcee9db
Showing
6 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,32 +9,34 @@ on: | |
|
||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
CODECOV_XCODE_VERSION: "15.4" # Xcode version used to generate code coverage | ||
CODECOV_XCODE_VERSION: "16.0" # Xcode version used to generate code coverage | ||
|
||
jobs: | ||
macos-test-build-release-xcode: | ||
runs-on: macOS-latest | ||
macos: | ||
runs-on: ${{ matrix.config.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
xcode: ["14.3.1", "15.4", "16.0"] | ||
|
||
config: | ||
- { os: "macos-14", xcode: "15.4" } | ||
- { os: "macos-15", xcode: "16.0" } | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Select Xcode ${{ matrix.xcode }} | ||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | ||
- name: Select Xcode ${{ matrix.config.xcode }} | ||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.config.xcode }}.app | ||
|
||
- name: Test | ||
run: swift test -c release --parallel --xunit-output .build/xUnit-output.xml --enable-code-coverage | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | ||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.config.xcode }}.app/Contents/Developer | ||
|
||
- name: Upload test artifacts | ||
if: failure() | ||
uses: actions/[email protected] | ||
with: | ||
name: test-artifacts-${{ matrix.xcode }}-${{ github.run_id }} | ||
name: test-artifacts-${{ matrix.config.xcode }}-${{ github.run_id }} | ||
path: | | ||
.build/*.yaml | ||
.build/*.xml | ||
|
@@ -48,13 +50,13 @@ jobs: | |
|
||
# Only run coverage steps if the CODECOV_TOKEN is available and the matrix.xcode matches CODECOV_XCODE_VERSION | ||
- name: Generate coverage report | ||
if: env.CODECOV_TOKEN != '' && matrix.xcode == env.CODECOV_XCODE_VERSION | ||
if: env.CODECOV_TOKEN != '' && matrix.config.xcode == env.CODECOV_XCODE_VERSION | ||
run: xcrun llvm-cov export -format="lcov" .build/**/*PackageTests.xctest/Contents/MacOS/*PackageTests -instr-profile .build/**/codecov/default.profdata > coverage.lcov | ||
|
||
- name: Upload code coverage report | ||
if: env.CODECOV_TOKEN != '' && matrix.xcode == env.CODECOV_XCODE_VERSION | ||
uses: codecov/codecov-action@v4.6.0 | ||
if: env.CODECOV_TOKEN != '' && matrix.config.xcode == env.CODECOV_XCODE_VERSION | ||
uses: codecov/codecov-action@v5.0.2 | ||
with: | ||
token: ${{ env.CODECOV_TOKEN }} | ||
file: coverage.lcov | ||
files: coverage.lcov | ||
fail_ci_if_error: true |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
documentation: | ||
runs-on: macos-14 | ||
steps: | ||
- name: Select Xcode 16.0 | ||
|
@@ -69,7 +69,7 @@ jobs: | |
run: 'sudo chown -R $USER docs' | ||
|
||
- name: Publish documentation to GitHub Pages | ||
uses: JamesIves/[email protected].8 | ||
uses: JamesIves/[email protected].9 | ||
with: | ||
branch: gh-pages | ||
folder: docs | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
realm/[email protected] | ||
nicklockwood/SwiftFormat@0.54.6 | ||
nicklockwood/SwiftFormat@0.55.0 | ||
krzysztofzablocki/[email protected] |