From 4b684fbb554d05f43e457265c391d507f7e9308e Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Sun, 10 Nov 2024 08:23:33 -0800 Subject: [PATCH 1/4] Create CI --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c91319d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + spm: + name: Build and Test on Xcode 16 + runs-on: macos-14 + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + - name: Select Xcode Version + run: sudo xcode-select --switch /Applications/Xcode_16.app/Contents/Developer + - name: Build and Test Framework + run: | + xcrun swift test -c release --enable-code-coverage -Xswiftc -enable-testing + + linux: + name: Build and Test on Linux + runs-on: ubuntu-latest + container: swift:6.0 + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + - name: Build and Test Framework + run: swift test -c release --enable-code-coverage -Xswiftc -enable-testing + + readme-validation: + name: Check Markdown links + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + - name: Validate Markdown + uses: gaurav-nelson/github-action-markdown-link-check@v1 From 5b070694bda6b43a3f6bcfe0e0f386fa3e1a329f Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Sun, 10 Nov 2024 08:26:37 -0800 Subject: [PATCH 2/4] use macOS 15 --- .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 c91319d..762afee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: jobs: spm: name: Build and Test on Xcode 16 - runs-on: macos-14 + runs-on: macos-15 steps: - name: Checkout Repo uses: actions/checkout@v4 From 98bddb27e597e691be41ba731ddb5d2d1a140f01 Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Sun, 10 Nov 2024 08:35:16 -0800 Subject: [PATCH 3/4] On macOS: test in debug, not release --- .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 762afee..c8c40ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: run: sudo xcode-select --switch /Applications/Xcode_16.app/Contents/Developer - name: Build and Test Framework run: | - xcrun swift test -c release --enable-code-coverage -Xswiftc -enable-testing + xcrun swift test --enable-code-coverage -Xswiftc -enable-testing linux: name: Build and Test on Linux From 334758769e88984a85ff0edb71d6b3b5083239a7 Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Sun, 10 Nov 2024 12:49:08 -0800 Subject: [PATCH 4/4] New link inspector --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8c40ce..587e73b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,4 +36,7 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - name: Validate Markdown - uses: gaurav-nelson/github-action-markdown-link-check@v1 + uses: umbrelladocs/action-linkspector@v1 + with: + reporter: github-check + fail_on_error: true