From 55597ffe0db562d542850a96e60da2eabae920f3 Mon Sep 17 00:00:00 2001 From: Ryan <962491243@qq.com> Date: Fri, 19 Apr 2024 10:03:01 +0800 Subject: [PATCH] update github action --- .github/workflows/github-actions-test.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/github-actions-test.yml b/.github/workflows/github-actions-test.yml index fece6cce0..5e76808b2 100644 --- a/.github/workflows/github-actions-test.yml +++ b/.github/workflows/github-actions-test.yml @@ -4,7 +4,6 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest strategy: @@ -18,18 +17,23 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: 'npm' + + - uses: pnpm/action-setup@v3 + name: Install pnpm + with: + version: 8 + run_install: false - name: Install dependencies core - run: | - cd packages/easy-email-core && yarn + run: | + cd packages/easy-email-core && pnpm install - name: Run tests core - run: yarn test:core + run: pnpm run test:core - name: Install dependencies extensions run: | - cd packages/easy-email-extensions && yarn + cd packages/easy-email-extensions && pnpm run - name: Run tests extensions - run: yarn test:extensions \ No newline at end of file + run: pnpm run test:extensions