Skip to content

Commit 19f982f

Browse files
committed
build: use upstream build definition on fork prs
1 parent bdaa55b commit 19f982f

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/workflows/check-pr-title.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: Check PR title
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types:
66
- opened
7-
- reopened
87
- edited
98
- synchronize
9+
- labeled
10+
- unlabeled
1011

1112
jobs:
1213
lint:

.github/workflows/default.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: default
22

3-
on: [push]
3+
on:
4+
pull_request_target:
5+
push:
6+
branches:
7+
- master
8+
- next
9+
- next-major
10+
- alpha
11+
- beta
412

513
jobs:
614
lint:
@@ -14,7 +22,7 @@ jobs:
1422
- uses: github/super-linter/slim@v4
1523
env:
1624
DEFAULT_BRANCH: master
17-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1826
VALIDATE_ALL_CODEBASE: true
1927
VALIDATE_JAVASCRIPT_ES: true
2028
VALIDATE_EDITORCONFIG: true
@@ -40,12 +48,11 @@ jobs:
4048
cache: 'npm'
4149
- run: npm ci --no-optional
4250
- run: npm test
43-
- name: Archive code coverage results
44-
uses: actions/upload-artifact@v2
51+
- uses: actions/upload-artifact@v2
4552
with:
4653
name: code-coverage-report
4754
path: coverage
48-
retention-days: 30
55+
retention-days: 90
4956
- uses: vebr/jest-lcov-reporter@v0.2.1
5057
with:
5158
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)