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