-
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (64 loc) · 1.41 KB
/
main.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
62
63
64
65
66
67
68
69
name: CI/CD
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ci/cd-${{ github.ref }}
cancel-in-progress: true
jobs:
analysis:
name: CodeQL
if: github.event_name != 'workflow_dispatch'
uses: danthorpe/ci/.github/workflows/static-analysis.yml@main
permissions:
actions: read
contents: read
security-events: write
with:
matrix: >
{
"include": [
{
"os": "ubuntu-latest",
"swift": "latest",
"xcode": "latest"
}
]
}
swift-package-test:
name: Test Swift Package
uses: danthorpe/ci/.github/workflows/swift-package.yml@main
secrets: inherit
with:
matrix: >
{
"include": [
{
"os": "macos-14",
"swift": "5.9",
"xcode": "15.1"
},
{
"os": "macos-14",
"swift": "5.10",
"xcode": "15.3"
},
{
"os": "ubuntu-latest",
"swift": "5.10"
}
]
}
docs:
name: Docs
if: github.event_name == 'push'
needs: [analysis, swift-package-test]
uses: danthorpe/ci/.github/workflows/docs.yml@main
with:
os: 'macos-14'
targets: '["Cache","Protected","ShortID"]'
basepath: 'swift-utilities'