Skip to content

Commit

Permalink
re-enable ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pacu committed Dec 24, 2023
1 parent 3b4d259 commit a2b34df
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 32 deletions.
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, ubuntu-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

0 comments on commit a2b34df

Please sign in to comment.