Skip to content

Commit

Permalink
fix: install with pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Oct 5, 2024
1 parent c1eb99b commit 60b6708
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,34 @@ jobs:
- name: Git checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.2

- run: npm run install_npm
- run: npm install && npm install codecov
- run: npm run build --if-present
- run: npm run cov
- name: Install dependencies
run: pnpm install

- name: Install codecov
run: pnpm add codecov

- name: Build
run: pnpm run build --if-present

- name: Run tests and coverage
run: pnpm run cov
env:
RABBITMQ_URL: amqp://localhost:${{ job.services.rabbitmq.ports[5672] }}
ALI_SDK_OSS_REGION: ${{ secrets.ALI_SDK_OSS_REGION }}
Expand All @@ -109,6 +123,7 @@ jobs:
ALI_SDK_STS_SECRET: ${{ secrets.ALI_SDK_STS_SECRET }}
ALI_SDK_STS_BUCKET: ${{ secrets.ALI_SDK_STS_BUCKET }}
ALI_SDK_STS_ROLE: ${{ secrets.ALI_SDK_STS_ROLE }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4

Expand Down

0 comments on commit 60b6708

Please sign in to comment.