Skip to content

Commit

Permalink
chore: Add CI (#2)
Browse files Browse the repository at this point in the history
* chore: Add CI

* chore: Remove SwiftyLab/setup-swift

* chore: Force Swift 5.10.0

* chore: Update TCA to 1.9.2

* chore: ci

* ci: check-latest

* wip

* wip

* wip

---------

Co-authored-by: danthorpe <danthorpe@users.noreply.github.com>
  • Loading branch information
danthorpe and danthorpe authored Apr 11, 2024
1 parent 408f6bb commit 5646ebf
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 6 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
10 changes: 5 additions & 5 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "e9c216a79f623470cd0f734b5d718bee4a1bfa72dae2e13630d33f1a5756acad",
"originHash" : "a1cfcd4e9d9d54b2963686712ebe5fe51ab4b11a0e937c5cd607329a54e82894",
"pins" : [
{
"identity" : "combine-schedulers",
Expand All @@ -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"
}
},
{
Expand All @@ -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"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
]

Expand Down

0 comments on commit 5646ebf

Please sign in to comment.