diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000..fbda546b2 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,42 @@ +name: Tests + +on: + push: + paths-ignore: + - '.github/**.md' + - 'README.md' + branches: + - main + pull_request: + paths-ignore: + - '.github/**.md' + - 'README.md' + types: [opened, synchronize, reopened, ready_for_review] + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +env: + DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer + +jobs: + test: + name: Tests + runs-on: macos-14 + steps: + - name: Report Swift Version + run: xcrun swift --version + + - name: Checkout Package + uses: actions/checkout@v4 + + - name: Cache SPM + uses: actions/cache@v4 + with: + path: .build + key: v1-${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} + restore-keys: | + v1-${{ runner.os }}-spm- + - name: Test + run: make test-all diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..c87a69947 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +CONFIG = debug +PLATFORM_IOS = iOS Simulator,id=$(call udid_for,iOS 17.2,iPhone \d\+ Pro [^M]) +PLATFORM_MACOS = macOS +PLATFORM_MAC_CATALYST = macOS,variant=Mac Catalyst +PLATFORM_TVOS = tvOS Simulator,id=$(call udid_for,tvOS 17.2,TV) +PLATFORM_VISIONOS = visionOS Simulator,id=$(call udid_for,visionOS 1.0,Vision) +PLATFORM_WATCHOS = watchOS Simulator,id=$(call udid_for,watchOS 10.2,Watch) + +default: test-all + +test-all: + swift test diff --git a/Package.resolved b/Package.resolved index 2c698534e..871622d17 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "e9c216a79f623470cd0f734b5d718bee4a1bfa72dae2e13630d33f1a5756acad", + "originHash" : "a1cfcd4e9d9d54b2963686712ebe5fe51ab4b11a0e937c5cd607329a54e82894", "pins" : [ { "identity" : "combine-schedulers", @@ -15,8 +15,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-case-paths", "state" : { - "revision" : "551150d5e60e3be78972607d89cd69069cca3e7c", - "version" : "1.2.4" + "revision" : "e593aba2c6222daad7c4f2732a431eed2c09bb07", + "version" : "1.3.0" } }, { @@ -42,8 +42,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-composable-architecture", "state" : { - "revision" : "856f9b8d82f6851b7f61ec4c5ce9e4c18ebbdb45", - "version" : "1.8.2" + "revision" : "115fe5af41d333b6156d4924d7c7058bc77fd580", + "version" : "1.9.2" } }, { diff --git a/Package.swift b/Package.swift index db251cc42..3f47c44c0 100644 --- a/Package.swift +++ b/Package.swift @@ -75,7 +75,7 @@ extension [SwiftSetting] { // MARK: - 👜 3rd Party Dependencies package.dependencies = [ - .package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "1.8.0"), + .package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "1.9.0"), .package(url: "https://github.com/apple/swift-testing", branch: "main"), ]