From 9dbc5477418d6fb2d0bdac2c0ce0f3cb3d9b4814 Mon Sep 17 00:00:00 2001 From: "brunel.lee" Date: Mon, 14 Oct 2024 11:15:04 +0900 Subject: [PATCH 1/2] Add missing swift build for linux ci --- .github/workflows/ci.yml | 2 ++ Makefile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad3c013..4ba3c05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,5 +32,7 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 + - name: Build Swift + run: make build-swift - name: Run Swift Tests run: make test diff --git a/Makefile b/Makefile index 22c606a..77bb981 100644 --- a/Makefile +++ b/Makefile @@ -32,4 +32,7 @@ test-swift6: swift package clean swift test -Xswiftc -swift-version -Xswiftc 6 +build-swift: + swift build + .PHONY: build-all build test test-swift6 From 634688d265980941bb7188463f8ce3af27461e10 Mon Sep 17 00:00:00 2001 From: "brunel.lee" Date: Mon, 14 Oct 2024 17:50:23 +0900 Subject: [PATCH 2/2] Increase timeout on StoreTests and add swift build on phony --- Makefile | 2 +- Tests/OneWayTests/StoreTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 77bb981..751123b 100644 --- a/Makefile +++ b/Makefile @@ -35,4 +35,4 @@ test-swift6: build-swift: swift build -.PHONY: build-all build test test-swift6 +.PHONY: build-all build test test-swift6 build-swift diff --git a/Tests/OneWayTests/StoreTests.swift b/Tests/OneWayTests/StoreTests.swift index e77148c..913e200 100644 --- a/Tests/OneWayTests/StoreTests.swift +++ b/Tests/OneWayTests/StoreTests.swift @@ -61,7 +61,7 @@ final class StoreTests: XCTestCase { func test_lotsOfActions() async { let iterations: Int = 100_000 await sut.send(.incrementMany) - await sut.expect(\.count, iterations, timeout: 5) + await sut.expect(\.count, iterations, timeout: 10) } func test_threadSafeSendingActions() async {