41 lines (35 loc) · 969 Bytes
/
danger.yaml
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
name: "Danger"
on:
pull_request_target:
types: [assigned, opened, synchronize, reopened]
branches:
- "**"
permissions:
actions: write
checks: write
contents: write
issues: write
pull-requests: write
statuses: write
jobs:
danger:
if: ${{ github.event.sender != 'codecov' }}
name: Danger JS
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Setup Node
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: "16"
cache: "yarn"
cache-dependency-path: "website/yarn.lock"
- name: Install Yarn Dependencies
working-directory: bots/
run: yarn install
- name: Run Danger
working-directory: bots/
run: yarn danger ci
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}