From c60f6cb3aa5295b605fc809caf7f8ca3148b5dbb Mon Sep 17 00:00:00 2001 From: Jon Bauer Date: Tue, 17 Mar 2026 00:58:51 -0700 Subject: [PATCH 1/2] Add GitHub Actions CI workflow for swift test Runs all 56 unit tests automatically on every push to main and every pull request targeting main. Uses macos-15 runner with latest-stable Xcode (via maxim-lobanov/setup-xcode) to satisfy the swift-tools-version 6.1 requirement without hardcoding a version that goes stale. Also adds a Tests badge to README.md alongside the existing shields. --- .github/workflows/tests.yml | 24 ++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..4b3e5f9 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,24 @@ +name: Tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + name: Swift Tests + runs-on: macos-15 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Select Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + + - name: Run tests + run: swift test diff --git a/README.md b/README.md index 61668b2..460578b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # xpt -![Version](https://img.shields.io/badge/version-0.3.2-blue) ![Platform](https://img.shields.io/badge/platform-macOS%2013%2B-lightgrey) ![Swift](https://img.shields.io/badge/swift-6.1-orange) ![License](https://img.shields.io/badge/license-MIT-green) +![Version](https://img.shields.io/badge/version-0.3.2-blue) ![Platform](https://img.shields.io/badge/platform-macOS%2013%2B-lightgrey) ![Swift](https://img.shields.io/badge/swift-6.1-orange) ![License](https://img.shields.io/badge/license-MIT-green) ![Tests](https://github.com/coveloper/xpt/actions/workflows/tests.yml/badge.svg) Save and restore per-branch Xcode breakpoints automatically. From db938d2e0d7be85fa44d06d689365d95ef3e77ec Mon Sep 17 00:00:00 2001 From: Jon Bauer Date: Tue, 17 Mar 2026 01:05:13 -0700 Subject: [PATCH 2/2] fix: suppress Node.js 20 deprecation warning in CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sets FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true at the workflow level so actions/checkout@v4 runs on Node 24 now, before GitHub forces the transition on June 2nd 2026. Also removes the maxim-lobanov/setup-xcode step — macos-15 runners ship with a modern Xcode that already satisfies swift-tools-version: 6.1, so the third-party action (the other Node 20 warning source) is not needed. --- .github/workflows/tests.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4b3e5f9..a0cde39 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [main] +env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true + jobs: test: name: Swift Tests @@ -15,10 +18,5 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Select Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: latest-stable - - name: Run tests run: swift test