-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1eb99b
commit 60b6708
Showing
1 changed file
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 | ||
|
||
|