-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: npm prune & add pr verification checks (#3277)
* wip: add wf * wip: add wf * wip: add wf * wip: add wf * wip: test clean git dir workflow * wip: fix deps and make link * wip: fix name * wip: undo change to install.js * wip: check git status * wip: use this version * wip: add missing npm-pack docs * wip: fix filename * wip: polish * wip: polish * wip: use pull request target only * wip: reset package lock
- Loading branch information
Showing
3 changed files
with
56 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: PR Validation Checks | ||
|
||
on: | ||
# pull_request: | ||
# types: | ||
# - opened | ||
# - edited | ||
# - synchronize | ||
# branches: | ||
# - release-next | ||
# - latest | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
branches: | ||
- release-next | ||
- latest | ||
|
||
jobs: | ||
pr-title-format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
clean-working-dir: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out PR branch | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{ github.repository }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install dependencies | ||
run: | | ||
node . install | ||
- name: Check for diff | ||
run: | | ||
touch lib/utils/config/definitions.js | ||
npm run postsnap | ||
make prune |
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 |
---|---|---|
|
@@ -27,3 +27,4 @@ npm-debug.log | |
/coverage | ||
/*.tgz | ||
/.editorconfig | ||
.vscode/ |
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