Skip to content

Commit

Permalink
test: add pnpm version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafnik committed Jul 22, 2024
1 parent e9ee451 commit 9ad8ff5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ jobs:
id: check-pnpm-version
run: |
PNPM_VERSION=$(pnpm -v)
MATRIX_PNPM_VERSION=${{ matrix.pnpm }}
PNPM_VERSION_FIRST_PART=$(echo $PNPM_VERSION | cut -d. -f1)
echo "PNPM_VERSION_FIRST_PART=$PNPM_VERSION_FIRST_PART" >> $GITHUB_OUTPUT
echo "MATRIX_PNPM_VERSION=$MATRIX_PNPM_VERSION" >> $GITHUB_OUTPUT
- name: Fail on wrong pnpm version (${{ steps.check-pnpm-version.outputs.PNPM_VERSION_FIRST_PART }}, ${{ steps.check-pnpm-version.outputs.MATRIX_PNPM_VERSION }})
if: ${{ steps.check-pnpm-version.outputs.PNPM_VERSION_FIRST_PART != steps.check-pnpm-version.outputs.MATRIX_PNPM_VERSION }}
- name: Fail on wrong pnpm version (${{ steps.check-pnpm-version.outputs.PNPM_VERSION_FIRST_PART }})
if: ${{ steps.check-pnpm-version.outputs.PNPM_VERSION_FIRST_PART != '9' }}
run: exit 1

0 comments on commit 9ad8ff5

Please sign in to comment.