-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (35 loc) · 1.07 KB
/
run-danger.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
name: Run Danger
on:
pull_request:
branches:
- main
workflow_call: {}
workflow_dispatch: {}
jobs:
build:
runs-on: macos-14
name: "Run Danger"
steps:
- uses: actions/checkout@v4
- name: Select Xcode
# See https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
run: |
sudo xcode-select -s /Applications/Xcode_15.4.app
xcodebuild -version
- name: Install Danger Swift
run: |
if ! which danger-swift > /dev/null; then
echo "Danger-swift is not installed; We'll try to install it."
if ! which brew > /dev/null; then
echo "Brew is not installed; cannot proceed with Danger installation."
fi
brew bundle --verbose
echo "Danger was installed successfully"
else
echo "Danger-swift is already installed"
fi
danger-swift --version
- name: Run Danger
run: danger-swift ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}