Skip to content

[TECH] Move to PNPM #3601

[TECH] Move to PNPM

[TECH] Move to PNPM #3601

Workflow file for this run

name: Test
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout repository.
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: setup env file
run: |
echo "VITE_LD_ENVIRONMENT_ID=${{ secrets.VITE_LD_ENVIRONMENT_ID_TEST }}" > .env
echo "VITE_IPFS_API=${{ secrets.VITE_IPFS_API }}" >> .env
- uses: pnpm/action-setup@v3
with:
version: 9
standalone: ${{ runner.os == 'Windows' }}
- name: Install node-gyp
run: pnpm add --global node-gyp
shell: bash
- name: Install modules.
run: pnpm run setup
- name: Test
run: pnpm test:ci