diff --git a/.github/workflows/forbidden-file-fail.yml b/.github/workflows/forbidden-file-fail.yml new file mode 100644 index 000000000..3320ce5a7 --- /dev/null +++ b/.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 diff --git a/.github/workflows/forbidden-file-success.yml b/.github/workflows/forbidden-file-success.yml new file mode 100644 index 000000000..2e839b19e --- /dev/null +++ b/.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