-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.27 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
runs-on: macos-14
strategy:
matrix:
xcode: ['16.2']
config: ['debug']
steps:
- uses: actions/checkout@v4
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Build and Test
run: swift test
swiftlint:
name: SwiftLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run SwiftLint
uses: norio-nomura/[email protected]
with:
args: --strict
docs:
name: Documentation
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_16.2.app
- name: Build Documentation
run: |
swift package --allow-writing-to-directory ./docs \
generate-documentation --target GroqSwift \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path groq_swift \
--output-path ./docs
- name: Upload Documentation
uses: actions/upload-pages-artifact@v3
with:
path: ./docs