Skip to content

Commit 3a45738

Browse files
authored
Create swift.yml
1 parent 756c21f commit 3a45738

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/swift.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
runs-on: macos-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Test URLPattern
20+
run: swift test -v
21+
22+
- name: Test URLPatternExample
23+
run: |
24+
xcodebuild \
25+
-project ./URLPatternExample/URLPatternExample.xcodeproj \
26+
-scheme URLPatternExample \
27+
-destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' \
28+
test

0 commit comments

Comments
 (0)