Skip to content

Commit

Permalink
chore: forbid non-npm lockfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Nov 28, 2022
1 parent 4faee1b commit 65cf1d7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/forbidden-file-fail.yml
@@ -0,0 +1,20 @@
name: 'Lockfile'

on:
push:
branches: [master]
paths:
- 'yarn.lock'
- 'pnpm-lock.yaml'
pull_request:
branches: [master]
paths:
- 'yarn.lock'
- 'pnpm-lock.yaml'

jobs:
lockfile-invalid:
name: Lockfiles check
runs-on: ubuntu-latest
steps:
- run: exit 1
20 changes: 20 additions & 0 deletions .github/workflows/forbidden-file-success.yml
@@ -0,0 +1,20 @@
name: 'Lockfile'

on:
push:
branches: [master]
paths-ignore:
- 'yarn.lock'
- 'pnpm-lock.yaml'
pull_request:
branches: [master]
paths-ignore:
- 'yarn.lock'
- 'pnpm-lock.yaml'

jobs:
lockfile-valid:
name: Lockfiles check
runs-on: ubuntu-latest
steps:
- run: exit 0

0 comments on commit 65cf1d7

Please sign in to comment.