Skip to content

Commit

Permalink
ci: run lintlock if any package-lock.json file changed (ethereumj…
Browse files Browse the repository at this point in the history
…s#2201)

Co-authored-by: Gabriel Rocheleau <[email protected]>
  • Loading branch information
faustbrian and gabrocheleau authored Aug 22, 2022
1 parent 0e8b9cd commit 9f206c9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lockfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: lockfile-lint

on:
pull_request:
types: [opened, reopened, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
root:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
src:
- 'package-lock.json'
- if: steps.changes.outputs.src == 'true'
run: npx lockfile-lint --path="package-lock.json" --allowed-hosts=npm --allowed-schemes "file:" "https:" "npm:"

0 comments on commit 9f206c9

Please sign in to comment.