From 0705d418b47bd69280a569e3c55c213e0f7cdd22 Mon Sep 17 00:00:00 2001 From: Andrew Kochulab Date: Wed, 19 Aug 2026 00:04:23 +0300 Subject: [PATCH] ci: update GitHub Actions to current majors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The workflows shipped pinned to versions that were already a major or two behind — Dependabot opened four PRs on its first run saying so. Consolidated into one change so this costs a single CI run rather than four. checkout v4 -> v7, cache v4 -> v6, deploy-pages v4 -> v5, upload-pages-artifact v3 -> v5. Supersedes #10, #11, #12, #13. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/documentation.yml | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f94a795..7d80581 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: name: Core build & test runs-on: macos-26 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Show toolchain run: swift --version - name: Assert the default trait set pulls no dependencies @@ -62,7 +62,7 @@ jobs: - { name: visionOS, sdk: xrsimulator, triple: arm64-apple-xros1.0-simulator } - { name: macOS, sdk: macosx, triple: arm64-apple-macosx12.0 } steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Build for ${{ matrix.name }} run: | swift build \ @@ -76,10 +76,10 @@ jobs: name: Providers against real SDKs runs-on: macos-26 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Cache SwiftPM artifacts - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: | ~/Library/Caches/org.swift.swiftpm @@ -111,7 +111,7 @@ jobs: name: DocC runs-on: macos-26 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - run: | xcodebuild docbuild \ -scheme AnalyticsSystem \ @@ -122,7 +122,7 @@ jobs: name: SwiftLint runs-on: macos-26 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - run: brew install swiftlint - run: swiftlint lint --strict @@ -130,7 +130,7 @@ jobs: name: CocoaPods lint runs-on: macos-26 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Lint the Core subspec # Only Core is linted here: the provider subspecs would each pull a full # vendor SDK from trunk, which turns a lint into a multi-minute download. diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 7692c7c..a3d90d6 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -22,7 +22,7 @@ jobs: name: Build DocC runs-on: macos-26 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 # Deliberately built with xcodebuild rather than swift-docc-plugin: the plugin # would appear in a default `swift package resolve`, and this package promises @@ -45,7 +45,7 @@ jobs: # Land visitors on the documentation root rather than a 404. echo '' > _site/index.html - - uses: actions/upload-pages-artifact@v3 + - uses: actions/upload-pages-artifact@v5 with: path: _site @@ -58,4 +58,4 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5