-
Notifications
You must be signed in to change notification settings - Fork 68
42 lines (33 loc) · 992 Bytes
/
pull-request.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
name: Lint, Test, and Danger
on: pull_request
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
jobs:
lint-test-danger:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Lint
run: yarn lint:ci
- name: Test
run: yarn cicoverage
- name: Report Coverage
uses: romeovs/lcov-reporter-action@2a28ec3e25fb7eae9cb537e9141603486f810d1a
with:
delete-old-comments: true
- name: Run danger
run: yarn run danger ci -d dangerfile.cjs
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}