Skip to content

Commit c473b1b

Browse files
authored
Merge pull request #5 from CuriositySoftware/yimajo-patch-1
Run tests with GitHub Actions
2 parents c56386c + 464cabd commit c473b1b

File tree

5 files changed

+252
-197
lines changed

5 files changed

+252
-197
lines changed

.github/workflows/swift.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will build a Swift project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+
name: Swift
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest]
18+
swift: ["5.9"]
19+
runs-on: ${{ matrix.os }}
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Build
24+
run: swift build -v
25+
- name: Run tests
26+
run: swift test -v

Package.resolved

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ let package = Package(
1818
],
1919
dependencies: [
2020
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.2"),
21+
.package(url: "https://github.com/apple/swift-testing.git", revision: "aa8702a"),
2122
],
2223
targets: [
2324
.macro(
@@ -44,6 +45,7 @@ let package = Package(
4445
dependencies: [
4546
"FatalErrorTestValueImplementationMacro",
4647
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
48+
.product(name: "Testing", package: "swift-testing"),
4749
]
4850
),
4951
]

0 commit comments

Comments
 (0)