Skip to content

Commit af7903f

Browse files
committed
Add workflow
1 parent 3852da2 commit af7903f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

Diff for: .github/workflows/build.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: macos-15
13+
14+
steps:
15+
# setup-swift doesn't support Swift 6 so use the Swift included in macos-latest.
16+
# - name: Set up Swift
17+
# uses: swift-actions/setup-swift@v2
18+
# with:
19+
# swift-version: "6.0.0"
20+
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Select Xcode
25+
run: sudo xcode-select -s '/Applications/Xcode_16.0.app/Contents/Developer'
26+
27+
- name: Get swift version
28+
run: swift --version # Swift 6.0
29+
30+
- name: Check Formatting
31+
run: swift package plugin --allow-writing-to-package-directory swiftformat --lint
32+
33+
- name: Build
34+
run: swift build
35+
36+
- name: Run tests
37+
run: swift test

0 commit comments

Comments
 (0)