From 2e6ceb3d60958330a27e460e4ddbbeb8088adf6d Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 15 Jun 2023 16:07:36 +0800 Subject: [PATCH] chore(deps): add pnpm/action-setup@v2 --- .github/workflows/ci-cd.yml | 8 ++++ .../workflows/playwright-test-workflow.yml | 4 ++ .github/workflows/publish-blog.yml | 4 ++ .github/workflows/publish-dev-docs.yml | 4 ++ .github/workflows/publish-docs.yml | 4 ++ .github/workflows/publish-noco-i18n.yml | 4 ++ .github/workflows/publish-prev-docs.yml | 4 ++ .github/workflows/release-docker.yml | 4 ++ .github/workflows/release-executables.yml | 4 ++ .github/workflows/release-npm.yml | 4 ++ .../workflows/release-timely-executables.yml | 4 ++ .github/workflows/unit-test.yml | 40 ++++++++++--------- .github/workflows/update-sdk-path.yml | 4 ++ 13 files changed, 74 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index ffa26ca61c..05f1b6f8c6 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -30,6 +30,10 @@ jobs: timeout-minutes: 40 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - name: Setup Node uses: actions/setup-node@v3 with: @@ -68,6 +72,10 @@ jobs: timeout-minutes: 40 if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - name: Setup Node uses: actions/setup-node@v3 with: diff --git a/.github/workflows/playwright-test-workflow.yml b/.github/workflows/playwright-test-workflow.yml index 43d9fc6f08..6aabee845d 100644 --- a/.github/workflows/playwright-test-workflow.yml +++ b/.github/workflows/playwright-test-workflow.yml @@ -16,6 +16,10 @@ jobs: runs-on: ubuntu-20.04 timeout-minutes: 40 steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 # Reference: https://github.com/pierotofy/set-swap-space/blob/master/action.yml - name: Set 5gb swap shell: bash diff --git a/.github/workflows/publish-blog.yml b/.github/workflows/publish-blog.yml index 6c39b22cb2..28f081afb1 100644 --- a/.github/workflows/publish-blog.yml +++ b/.github/workflows/publish-blog.yml @@ -10,6 +10,10 @@ jobs: copy-file: runs-on: ubuntu-latest steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - name: Checkout uses: actions/checkout@v3 with: diff --git a/.github/workflows/publish-dev-docs.yml b/.github/workflows/publish-dev-docs.yml index bab1ceeb19..561cf2bc54 100644 --- a/.github/workflows/publish-dev-docs.yml +++ b/.github/workflows/publish-dev-docs.yml @@ -14,6 +14,10 @@ jobs: copy-file: runs-on: ubuntu-latest steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - name: Checkout uses: actions/checkout@v3 with: diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index d3a12e73d7..b67041b0c6 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -13,6 +13,10 @@ jobs: copy-file: runs-on: ubuntu-latest steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - name: Checkout uses: actions/checkout@v3 with: diff --git a/.github/workflows/publish-noco-i18n.yml b/.github/workflows/publish-noco-i18n.yml index 4840894886..32bf3e44f8 100644 --- a/.github/workflows/publish-noco-i18n.yml +++ b/.github/workflows/publish-noco-i18n.yml @@ -12,6 +12,10 @@ jobs: copy-file: runs-on: ubuntu-latest steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - name: Checkout uses: actions/checkout@v3 with: diff --git a/.github/workflows/publish-prev-docs.yml b/.github/workflows/publish-prev-docs.yml index 86d71f8046..e0f7f5d9fc 100644 --- a/.github/workflows/publish-prev-docs.yml +++ b/.github/workflows/publish-prev-docs.yml @@ -13,6 +13,10 @@ jobs: copy-file: runs-on: ubuntu-latest steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - name: Checkout uses: actions/checkout@v3 with: diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index df95dd59e4..018b26f626 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -45,6 +45,10 @@ jobs: env: working-directory: ./packages/nocodb steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - name: Get Docker Repository id: get-docker-repository run: | diff --git a/.github/workflows/release-executables.yml b/.github/workflows/release-executables.yml index 6ce2b977f5..ed8bdc7038 100644 --- a/.github/workflows/release-executables.yml +++ b/.github/workflows/release-executables.yml @@ -21,6 +21,10 @@ jobs: build-executables: runs-on: ubuntu-latest steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - uses: actions/checkout@v3 - name: Cache node modules id: cache-pnpm diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index 707cc82abc..5f60d18efe 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -37,6 +37,10 @@ jobs: env: working-directory: ./packages/nocodb steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - name: Checkout uses: actions/checkout@v3 with: diff --git a/.github/workflows/release-timely-executables.yml b/.github/workflows/release-timely-executables.yml index 6f586f5930..0654f10218 100644 --- a/.github/workflows/release-timely-executables.yml +++ b/.github/workflows/release-timely-executables.yml @@ -21,6 +21,10 @@ jobs: build-executables: runs-on: ubuntu-latest steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - uses: actions/checkout@v3 with: token: ${{ secrets.NC_GITHUB_TOKEN }} diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 745acaa222..5a706e3e9c 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -24,21 +24,25 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'pnpm' - - name: install dependencies nocodb-sdk - working-directory: ./packages/nocodb-sdk - run: pnpm install - - name: build nocodb-sdk - working-directory: ./packages/nocodb-sdk - run: pnpm run build:main - - name: install dependencies nocodb - working-directory: ./packages/nocodb - run: pnpm install - - name: run unit tests - working-directory: ./packages/nocodb - run: pnpm run unit-test \ No newline at end of file + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - name: install dependencies nocodb-sdk + working-directory: ./packages/nocodb-sdk + run: pnpm install + - name: build nocodb-sdk + working-directory: ./packages/nocodb-sdk + run: pnpm run build:main + - name: install dependencies nocodb + working-directory: ./packages/nocodb + run: pnpm install + - name: run unit tests + working-directory: ./packages/nocodb + run: pnpm run unit-test \ No newline at end of file diff --git a/.github/workflows/update-sdk-path.yml b/.github/workflows/update-sdk-path.yml index 03b98171e2..951c775623 100644 --- a/.github/workflows/update-sdk-path.yml +++ b/.github/workflows/update-sdk-path.yml @@ -9,6 +9,10 @@ jobs: release: runs-on: ubuntu-latest steps: + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 - name: Setup Node uses: actions/setup-node@v3 with: