Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add CI #2

Merged
merged 9 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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