-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_actions_private.yml
60 lines (52 loc) · 1.5 KB
/
sample_actions_private.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
name: Actions
on:
pull_request:
branches:
- main
jobs:
bb_checks:
name: BB Checks
uses: BinaryBirds/github-workflows/.github/workflows/extra_soundness.yml@main
with:
local_swift_dependencies_check_enabled : true
swiftlang_checks:
name: Swiftlang Checks
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
with:
license_header_check_project_name: "project"
format_check_enabled : true
broken_symlink_check_enabled : true
unacceptable_language_check_enabled : true
api_breakage_check_enabled : false
docs_check_enabled : false
license_header_check_enabled : false
shell_check_enabled : false
yamllint_check_enabled : false
python_lint_check_enabled : false
run-tests:
name: Run Tests
strategy:
matrix:
os: [ubuntu-latest, macos-15]
include:
- os: ubuntu-latest
image:
- 'swift:6.0'
- os: macos-15
image: ''
runs-on: ${{ matrix.os }}
steps:
- name: Add keys to ssh-agent
uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.ADD_SECRET_HERE }}
- name: Checkout
uses: actions/checkout@v4
- name: Run Swift Tests
shell: bash
run: |
if [[ "$OSTYPE" == "linux-gnu"* ]]; then # if OS is linux
git config --global --add safe.directory $PWD
fi
swift test --parallel