Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pnpm lock file check to CI #3314

Merged
merged 1 commit into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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