From 088d9c489b0f3ecbcb95d4213c2e7fac6b06b3cd Mon Sep 17 00:00:00 2001
From: Bastian Stien
Date: Sun, 31 Aug 2025 07:41:32 +0200
Subject: [PATCH 1/2] Create unit-tests.yml
---
.github/workflows/unit-tests.yml | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 .github/workflows/unit-tests.yml
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
new file mode 100644
index 0000000..1eaef2d
--- /dev/null
+++ b/.github/workflows/unit-tests.yml
@@ -0,0 +1,24 @@
+name: Unit tests
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+
+concurrency:
+ group: ci-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true # Cancel older runs for the same PR/branch
+
+jobs:
+ build-and-test:
+ runs-on: macos-15
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Build
+ run: swift build
+
+ - name: Test
+ run: swift test --no-parallel
From f6411135eeb69328388bd40addaa39f36489bf1a Mon Sep 17 00:00:00 2001
From: Bastian Stien
Date: Sun, 31 Aug 2025 07:48:21 +0200
Subject: [PATCH 2/2] Add badges to README
---
README.md | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/README.md b/README.md
index 9b8e69f..452c13e 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A tiny, test-first way to mock `URLSession` — **fast to set up, easy to read, zero test servers**. Queue responses for specific hosts/paths (and optional query params), then run your code against a regular `URLSession` that returns exactly what you told it to.
> **Design goals**: simple, explicit and ergonomic for everyday tests or prototyping. No fixtures or external servers. Just say what a request should get back.