Skip to content

Commit

Permalink
Add pnpm lock file check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryHue committed Mar 24, 2022
1 parent da2799c commit 15c9c5c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- 'src/docs/**'

jobs:
lockfile:
uses: Seneca-CDOT/telescope/.github/workflows/pnpm-lock-check-ci.yml@master

# Confirm that prettier was run on the changes
prettier:
uses: Seneca-CDOT/telescope/.github/workflows/prettier-ci.yml@master
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/pnpm-lock-check-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: pnpm lock file check

on:
workflow_call:

jobs:
# Make sure that the pnpm lock-file of the PR is not broken
lockfile:
name: Lock file check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.23.5
- uses: actions/setup-node@v2.5.1
with:
cache: 'pnpm'
- name: Check lock file with pnpm list
run: |
pnpm list

0 comments on commit 15c9c5c

Please sign in to comment.