Skip to content

Commit d0a51f4

Browse files
committed
Use setup-xcode action
- Setup concurrency (cancel running jobs).
1 parent 0c0d75f commit d0a51f4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/swift.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
---
22
name: "CI"
3-
on: [push]
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
412

513
jobs:
614
test:
715
runs-on: macos-13
816
steps:
17+
- uses: maxim-lobanov/setup-xcode@v1
18+
with:
19+
xcode-version: '15.1'
920
- uses: actions/checkout@v4
1021
- name: Run Tests
1122
run: swift test -v

0 commit comments

Comments
 (0)