Skip to content

Commit 6ad7c68

Browse files
Added github action for testing
1 parent 97ed372 commit 6ad7c68

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.github/workflows/DOCC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Deploy Documentation
1+
name: "Build & Deploy Documentation"
22

33
on:
44
push:
@@ -19,7 +19,7 @@ jobs:
1919
environment:
2020
name: github-pages
2121
url: ${{ steps.deployment.outputs.page_url }}
22-
runs-on: macos-14
22+
runs-on: macos-latest
2323
steps:
2424
- name: Checkout Repository
2525
uses: actions/checkout@v3

.github/workflows/TEST.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Build & Test Package"
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main", "develop"]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-latest
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v3
15+
- name: Build Package
16+
run: swift build
17+
- name: Test Package
18+
run: swift test

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let package: Package = .init(
99
.library(name: "NumericProtocols", targets: ["NumericProtocols"])
1010
],
1111
dependencies: [
12-
.package(url: "https://github.com/swiftlang/swift-docc-plugin.git", from: "1.4.2")
12+
.package(url: "https://github.com/swiftlang/swift-docc-plugin.git", from: "1.4.2")
1313
],
1414
targets: [
1515
.target(

0 commit comments

Comments
 (0)