Skip to content

Commit da4e665

Browse files
committed
Add CI workflow
1 parent f13477f commit da4e665

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
test:
19+
name: macOS tests
20+
runs-on: macos-26
21+
timeout-minutes: 30
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Swift version
27+
run: swift --version
28+
29+
- name: Resolve dependencies
30+
run: swift package resolve
31+
32+
- name: Run tests
33+
run: |
34+
python3 -c 'import subprocess,sys; sys.exit(subprocess.run(sys.argv[2:], timeout=int(sys.argv[1])).returncode)' \
35+
1200 swift test --disable-sandbox --no-parallel

0 commit comments

Comments
 (0)