forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (21 loc) · 782 Bytes
/
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
name: CI
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
# Get local dependencies
- run: npm install
# Run tests
- run: npm run test
- name: "Run Danger"
env:
# See https://github.com/danger/danger-js/issues/1042
DANGER_GITHUB_API_BASE_URL: "https://api.github.com"
# Danger failing (for example through rate-limiting) shouldn't fail the build
run: |
TOKEN='7469b4e94ce21b43e3ab7a'
TOKEN+='79960c12a1e067f2ec'
DANGER_GITHUB_API_TOKEN=$TOKEN yarn danger ci || $( exit 0 )