Skip to content

Commit

Permalink
Merge pull request #29 from github/removeNPMAbsolutePaths
Browse files Browse the repository at this point in the history
Add PR check to remove npm absolute paths
  • Loading branch information
Robert authored and GitHub committed May 13, 2020
2 parents 015ead7 + 51b42fc commit cd95d34
Show file tree
Hide file tree
Showing 713 changed files with 13,519 additions and 18,664 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Lint, Build & Test"
name: "PR checks"

on: [push, pull_request]

Expand Down Expand Up @@ -30,10 +30,38 @@ jobs:
if [ ! -z "$(git status --porcelain)" ]; then
# If we get a fail here then the PR needs attention
>&2 echo "Failed: JavaScript files are not up to date. Run 'npm run-script build' to update"
git status
exit 1
fi
echo "Success: JavaScript files are up to date"
check-node-modules:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Check node modules up to date
run: |
# Sanity check that repo is clean to start with
if [ ! -z "$(git status --porcelain)" ]; then
# If we get a fail here then this workflow needs attention...
>&2 echo "Failed: Repo should be clean before testing!"
exit 1
fi
# Reinstall modules and then clean to remove absolute paths
# Use 'npm ci' instead of 'npm install' as this is intended to be reproducible
npm ci
npm run removeNPMAbsolutePaths
# Check that repo is still clean
if [ ! -z "$(git status --porcelain)" ]; then
# If we get a fail here then the PR needs attention
>&2 echo "Failed: node_modules are not up to date. Run 'npm ci' and 'npm run removeNPMAbsolutePaths' to update"
git status
exit 1
fi
echo "Success: node_modules are up to date"
npm-test:
runs-on: ubuntu-latest

Expand Down
1 change: 1 addition & 0 deletions node_modules/.bin/removeNPMAbsolutePaths

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion node_modules/@actions/http-client/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions node_modules/@actions/http-client/RELEASES.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions node_modules/@actions/http-client/auth.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 14 additions & 10 deletions node_modules/@actions/http-client/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cd95d34

Please sign in to comment.