Browse Source

fix(test): Enabled unit tests in CI

pull/4278/head
Muhammed Mustafa 2 years ago
parent
commit
554cfd68cf
  1. 80
      .github/workflows/ci-cd.yml

80
.github/workflows/ci-cd.yml

@ -25,47 +25,47 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
# unit-tests: unit-tests:
# runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
# timeout-minutes: 30 timeout-minutes: 30
# if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
# steps: steps:
# - name: Setup Node - name: Setup Node
# uses: actions/setup-node@v3 uses: actions/setup-node@v3
# with: with:
# node-version: 16.15.0 node-version: 16.15.0
# - name: Checkout - name: Checkout
# uses: actions/checkout@v3 uses: actions/checkout@v3
# with: with:
# fetch-depth: 0 fetch-depth: 0
# - name: Cache node modules - name: Cache node modules
# uses: actions/cache@v3 uses: actions/cache@v3
# env: env:
# cache-name: cache-node-modules cache-name: cache-node-modules
# with: with:
# # npm cache files are stored in `~/.npm` on Linux/macOS # npm cache files are stored in `~/.npm` on Linux/macOS
# path: ~/.npm path: ~/.npm
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: | restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build- ${{ runner.os }}-build-
# ${{ runner.os }}- ${{ runner.os }}-
# - name: install dependencies nocodb-sdk - name: install dependencies nocodb-sdk
# working-directory: ./packages/nocodb-sdk working-directory: ./packages/nocodb-sdk
# run: npm install run: npm install
# - name: build nocodb-sdk - name: build nocodb-sdk
# working-directory: ./packages/nocodb-sdk working-directory: ./packages/nocodb-sdk
# run: npm run build:main run: npm run build:main
# - name: Install dependencies - name: Install dependencies
# working-directory: ./packages/nocodb working-directory: ./packages/nocodb
# run: npm install run: npm install
# - name: setup mysql - name: setup mysql
# working-directory: ./ working-directory: ./
# run: docker-compose -f ./scripts/cypress/docker-compose-cypress.yml up -d run: docker-compose -f ./scripts/cypress/docker-compose-cypress.yml up -d
# - name: run unit tests - name: run unit tests
# working-directory: ./packages/nocodb working-directory: ./packages/nocodb
# run: npm run test:unit run: npm run test:unit
playwright-mysql-1: playwright-mysql-1:
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
uses: ./.github/workflows/playwright-test-workflow.yml uses: ./.github/workflows/playwright-test-workflow.yml

Loading…
Cancel
Save