-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1 KB
/
integrity.yml
File metadata and controls
46 lines (45 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Integrity Check
#
# References:
#
# - https://github.com/actions/checkout
# - https://yarnpkg.com/cli/dedupe
---
name: integrity
on:
pull_request:
paths:
- .github/workflows/integrity.yml
- .yarnrc.yml
- yarn.lock
push:
branches:
- main
paths:
- .github/workflows/integrity.yml
- .yarnrc.yml
- yarn.lock
workflow_dispatch:
env:
REF: ${{ github.head_ref || github.ref_name }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
integrity:
permissions:
packages: read
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout ${{ env.REF }}
uses: actions/checkout@v3.0.2
with:
persist-credentials: false
ref: ${{ env.REF }}
- id: dedupe-check
name: Check for duplicate dependencies in lockfile
run: yarn dedupe --check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}