Browse Source

chore(deps): add pnpm/action-setup@v2

pull/5903/head
Wing-Kam Wong 2 years ago
parent
commit
2e6ceb3d60
  1. 8
      .github/workflows/ci-cd.yml
  2. 4
      .github/workflows/playwright-test-workflow.yml
  3. 4
      .github/workflows/publish-blog.yml
  4. 4
      .github/workflows/publish-dev-docs.yml
  5. 4
      .github/workflows/publish-docs.yml
  6. 4
      .github/workflows/publish-noco-i18n.yml
  7. 4
      .github/workflows/publish-prev-docs.yml
  8. 4
      .github/workflows/release-docker.yml
  9. 4
      .github/workflows/release-executables.yml
  10. 4
      .github/workflows/release-npm.yml
  11. 4
      .github/workflows/release-timely-executables.yml
  12. 40
      .github/workflows/unit-test.yml
  13. 4
      .github/workflows/update-sdk-path.yml

8
.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:

4
.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

4
.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:

4
.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:

4
.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:

4
.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:

4
.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:

4
.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: |

4
.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

4
.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:

4
.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 }}

40
.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
- 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

4
.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:

Loading…
Cancel
Save