|
|
|
@ -45,28 +45,20 @@ jobs:
|
|
|
|
|
uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
fetch-depth: 0 |
|
|
|
|
- name: Cache node modules |
|
|
|
|
uses: actions/cache@v3 |
|
|
|
|
env: |
|
|
|
|
cache-name: cache-node-modules |
|
|
|
|
|
|
|
|
|
- name: Get pnpm store directory |
|
|
|
|
shell: bash |
|
|
|
|
run: | |
|
|
|
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV |
|
|
|
|
- uses: actions/cache@v3 |
|
|
|
|
name: Setup pnpm cache |
|
|
|
|
with: |
|
|
|
|
# pnpm cache files are stored in `~/.pnpm` on Linux/macOS |
|
|
|
|
path: ~/.pnpm |
|
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
|
|
|
|
path: ${{ env.STORE_PATH }} |
|
|
|
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
|
${{ runner.os }}-build- |
|
|
|
|
${{ runner.os }}- |
|
|
|
|
- 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 |
|
|
|
|
${{ runner.os }}-pnpm-store- |
|
|
|
|
- name: Install dependencies for packages |
|
|
|
|
run: pnpm bootstrap |
|
|
|
|
- name: Install dependencies |
|
|
|
|
working-directory: ./packages/nocodb |
|
|
|
|
run: pnpm install |
|
|
|
|
- name: run unit tests |
|
|
|
|
working-directory: ./packages/nocodb |
|
|
|
|
run: pnpm run test:unit |
|
|
|
@ -87,19 +79,17 @@ jobs:
|
|
|
|
|
uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
fetch-depth: 0 |
|
|
|
|
- name: Cache node modules |
|
|
|
|
uses: actions/cache@v3 |
|
|
|
|
env: |
|
|
|
|
cache-name: cache-node-modules |
|
|
|
|
|
|
|
|
|
- name: Get pnpm store directory |
|
|
|
|
shell: bash |
|
|
|
|
run: | |
|
|
|
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV |
|
|
|
|
- uses: actions/cache@v3 |
|
|
|
|
name: Setup pnpm cache |
|
|
|
|
with: |
|
|
|
|
# pnpm cache files are stored in `~/.pnpm` on Linux/macOS |
|
|
|
|
path: ~/.pnpm |
|
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
|
|
|
|
path: ${{ env.STORE_PATH }} |
|
|
|
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
|
${{ runner.os }}-build- |
|
|
|
|
${{ runner.os }}- |
|
|
|
|
${{ runner.os }}-pnpm-store- |
|
|
|
|
- name: Set CI env |
|
|
|
|
run: export CI=true |
|
|
|
|
- name: Set NC Edition |
|
|
|
@ -107,15 +97,8 @@ jobs:
|
|
|
|
|
- name: setup pg |
|
|
|
|
working-directory: ./ |
|
|
|
|
run: docker-compose -f ./tests/playwright/scripts/docker-compose-playwright-pg.yml up -d & |
|
|
|
|
- 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 |
|
|
|
|
working-directory: ./packages/nocodb |
|
|
|
|
run: pnpm install |
|
|
|
|
- name: install dependencies |
|
|
|
|
run: pnpm bootstrap |
|
|
|
|
- name: run unit tests |
|
|
|
|
working-directory: ./packages/nocodb |
|
|
|
|
run: pnpm run test:unit:pg |
|
|
|
|