From fa4969f7fc8bb24a10fed7211ef6286c3ea32fc0 Mon Sep 17 00:00:00 2001 From: corvid-agent <0xOpenBytes@gmail.com> Date: Fri, 27 Feb 2026 11:02:52 -0700 Subject: [PATCH 1/2] ci: upgrade actions/checkout to v4 and add PR triggers - Upgrade actions/checkout from v3 to v4 in docc, macOS, and ubuntu workflows - Add pull_request triggers to macOS, ubuntu, and windows CI workflows - docc workflow kept as push-to-main only (deploys to Pages) Closes #145 Co-Authored-By: corvid-agent --- .github/workflows/docc.yml | 2 +- .github/workflows/macOS.yml | 4 +++- .github/workflows/ubuntu.yml | 4 +++- .github/workflows/windows.yml | 2 ++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docc.yml b/.github/workflows/docc.yml index 2f2383a..f922ffe 100644 --- a/.github/workflows/docc.yml +++ b/.github/workflows/docc.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Xcode uses: maxim-lobanov/setup-xcode@v1 diff --git a/.github/workflows/macOS.yml b/.github/workflows/macOS.yml index f075aa5..3ea5d23 100644 --- a/.github/workflows/macOS.yml +++ b/.github/workflows/macOS.yml @@ -3,6 +3,8 @@ name: macOS on: push: branches: ["**"] + pull_request: + branches: ["main"] jobs: build: @@ -15,7 +17,7 @@ jobs: uses: swift-actions/setup-swift@v2 with: swift-version: '6.1.0' - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: swift build -v - name: Run tests diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index ca4352b..f3133cc 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -6,6 +6,8 @@ name: Ubuntu on: push: branches: ["**"] + pull_request: + branches: ["main"] jobs: build: @@ -16,7 +18,7 @@ jobs: uses: swift-actions/setup-swift@v2 with: swift-version: '6.1.0' - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build for release run: swift build -v -c release - name: Test diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 01046e3..9878972 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -3,6 +3,8 @@ name: Windows on: push: branches: ["**"] + pull_request: + branches: ["main"] jobs: build: From 1a8edd850feec811b593a9e91263b99535ddde73 Mon Sep 17 00:00:00 2001 From: corvid-agent <0xOpenBytes@gmail.com> Date: Fri, 27 Feb 2026 22:12:01 -0700 Subject: [PATCH 2/2] ci: scope push trigger to main only to avoid duplicate runs Narrows push trigger from all branches to main only. PRs targeting main are now covered solely by the pull_request trigger, preventing duplicate CI runs on every push to a PR branch. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/macOS.yml | 2 +- .github/workflows/ubuntu.yml | 2 +- .github/workflows/windows.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/macOS.yml b/.github/workflows/macOS.yml index 3ea5d23..49e20f9 100644 --- a/.github/workflows/macOS.yml +++ b/.github/workflows/macOS.yml @@ -2,7 +2,7 @@ name: macOS on: push: - branches: ["**"] + branches: ["main"] pull_request: branches: ["main"] diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index f3133cc..d9a6a73 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -5,7 +5,7 @@ name: Ubuntu on: push: - branches: ["**"] + branches: ["main"] pull_request: branches: ["main"] diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 9878972..9bb5e71 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -2,7 +2,7 @@ name: Windows on: push: - branches: ["**"] + branches: ["main"] pull_request: branches: ["main"]