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

re-enable ci #33

Merged
merged 2 commits into from
Dec 24, 2023
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
54 changes: 25 additions & 29 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
# # This workflow will build a Swift project
# # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

# name: Swift
name: Swift

# on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]


# jobs:
# build:
# name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
# strategy:
# matrix:
# os: [macos-latest]
# swift: ["5.9.0"]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: swift-actions/setup-swift@f51889efb55dccf13be0ee727e3d6c89a096fb4c
# with:
# swift-version: ${{ matrix.swift }}
# - name: Get swift version
# run: swift --version
# - uses: actions/checkout@v4
# - name: Swift clean
# run: swift package clean
# - name: Run tests
# run: swift test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
swift: ["5.9"]
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@f51889efb55dccf13be0ee727e3d6c89a096fb4c
with:
swift-version: ${{ matrix.swift }}
- name: Get swift version
run: swift --version
- uses: actions/checkout@v4
- name: Run tests
run: swift test
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-case-paths",
"state" : {
"revision" : "a5521dde99570789d8cb7c43e51418d7cd1a87ca",
"version" : "1.1.2"
"revision" : "5da6989aae464f324eef5c5b52bdb7974725ab81",
"version" : "1.0.0"
}
},
{
Expand Down
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import PackageDescription
let dependencies: [Package.Dependency] = [
.package(url: "https://github.com/realm/SwiftLint.git", from: "0.54.0"),
.package(url: "https://github.com/pointfreeco/swift-parsing", from: "0.13.0"),
.package(url: "https://github.com/pointfreeco/swift-case-paths", exact: Version(stringLiteral: "1.0.0")),
]

let targets: [Target] = [
Expand All @@ -22,7 +23,8 @@ let targets: [Target] = [
]
#else // linux and others
let dependencies: [Package.Dependency] = [
.package(url: "https://github.com/pointfreeco/swift-parsing", from: "0.13.0")
.package(url: "https://github.com/pointfreeco/swift-parsing", from: "0.13.0"),
.package(url: "https://github.com/pointfreeco/swift-case-paths", exact: Version(stringLiteral: "1.0.0")),
]

let targets: [Target] = [
Expand Down