Add pnpm to lockfile #597
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: coveralls | |
| on: | |
| push: | |
| branches: [master, develop] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Work around pnpm/action-setup v6 resolving the wrong version from package.json | |
| # https://github.com/pnpm/action-setup/issues/227 | |
| - name: Read pnpm version | |
| id: pnpm-version | |
| run: 'echo "version=$(jq --raw-output ''.devEngines.packageManager.version | split("+")[0]'' package.json)" >> "$GITHUB_OUTPUT"' | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: ${{ steps.pnpm-version.outputs.version }} | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - name: Install | |
| run: pnpm install --ignore-scripts | |
| - name: Test | |
| run: pnpm run test -- --coverage | |
| - name: Coveralls GitHub Action | |
| uses: coverallsapp/github-action@1.1.3 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |