Browse Source

fix/Fixed github action for unit tests

pull/3358/head
Muhammed Mustafa 2 years ago
parent
commit
3dbb15f534
  1. 44
      .github/workflows/ci-cd.yml

44
.github/workflows/ci-cd.yml

@ -636,29 +636,29 @@ jobs:
path: scripts/cypress/screenshots path: scripts/cypress/screenshots
retention-days: 2 retention-days: 2
unit-tests: unit-tests:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: steps:
- uses: actions/checkout@v3 - name: Setup Node
- name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1
uses: actions/setup-node@v3 with:
with: node-version: 16.15.0
node-version: ${{ matrix.node-version }} - name: Checkout
cache: 'npm' uses: actions/checkout@v2
- name: install dependencies nocodb-sdk with:
working-directory: ./packages/nocodb-sdk fetch-depth: 0
run: npm ci - name: Cache node modules
- name: build nocodb-sdk uses: actions/cache@v2
working-directory: ./packages/nocodb-sdk env:
run: npm run build:main cache-name: cache-node-modules
- name: install dependencies nocodb
working-directory: ./packages/nocodb with:
run: npm ci # npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: setup mysql - name: setup mysql
working-directory: ./ working-directory: ./
run: docker-compose -f ./scripts/docker-compose-cypress.yml up -d run: docker-compose -f ./scripts/docker-compose-cypress.yml up -d

Loading…
Cancel
Save