-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove job that requires token for now"
This reverts commit 0b78758.
- Loading branch information
1 parent
0b78758
commit 7d23f80
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,29 @@ jobs: | |
run: npm run lint:css | ||
|
||
- name: Detect ESLint coding standard violations | ||
if: > | ||
github.event.pull_request.head.repo.fork == true || | ||
github.event.pull_request.user.login == 'dependabot[bot]' | ||
run: npm run lint:js | ||
|
||
- name: Generate ESLint coding standard violations report | ||
# Prevent generating the ESLint report if PR is from a fork or authored by Dependabot. | ||
if: > | ||
! ( github.event.pull_request.head.repo.fork == true || | ||
github.event.pull_request.user.login == 'dependabot[bot]' ) | ||
run: npm run lint:js:report | ||
continue-on-error: true | ||
|
||
- name: Annotate code linting results | ||
# The action cannot annotate the PR when run from a PR fork or was authored by Dependabot. | ||
if: > | ||
! ( github.event.pull_request.head.repo.fork == true || | ||
github.event.pull_request.user.login == 'dependabot[bot]' ) | ||
uses: ataylorme/[email protected] | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' | ||
report-json: 'lint-js-report.json' | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
|