test(server): migrate to node internal test (#2000)

This commit is contained in:
Himself65
2023-04-18 00:07:03 -05:00
committed by GitHub
parent ea9861bfa0
commit 18223c22ef
13 changed files with 108 additions and 487 deletions
-15
View File
@@ -9,10 +9,6 @@ inputs:
description: 'Run the install step.'
required: false
default: 'true'
electron-workspace-install:
description: 'Run the install step for the electron workspace.'
required: false
default: 'false'
playwright-install:
description: 'Run the install step for Playwright.'
required: false
@@ -82,17 +78,6 @@ runs:
YARN_INSTALL_STATE_PATH: .yarn/ci-cache/install-state.gz
HUSKY: '0'
- name: yarn install (electron)
if: ${{ inputs.electron-workspace-install == 'true' }}
shell: bash
run: yarn install ${{ inputs.extra-flags }}
working-directory: apps/electron
env:
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
YARN_ENABLE_GLOBAL_CACHE: 'false'
YARN_INSTALL_STATE_PATH: ../../.yarn/ci-cache/install-state.gz
HUSKY: '0'
- name: Get installed Playwright version
id: playwright-version
if: ${{ inputs.playwright-install == 'true' }}
+12
View File
@@ -191,6 +191,18 @@ jobs:
name: affine
fail_ci_if_error: true
server-test:
name: Server Test
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Run server tests
run: yarn test:coverage
working-directory: apps/server
e2e-test:
name: E2E Test
runs-on: ubuntu-latest
+12 -2
View File
@@ -26,8 +26,6 @@ jobs:
- uses: actions/checkout@v3
- name: Install All Dependencies
uses: ./.github/actions/setup-node
with:
electron-workspace-install: true
build-storybook:
name: Build Storybook
@@ -84,6 +82,18 @@ jobs:
path: ./apps/web/.next
if-no-files-found: error
server-test:
name: Server Test
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Run server tests
run: yarn test:coverage
working-directory: apps/server
storybook-test:
name: Storybook Test
runs-on: ubuntu-latest
@@ -67,8 +67,6 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
electron-workspace-install: true
- name: Signing By Apple Developer ID
uses: apple-actions/import-codesign-certs@v2
@@ -114,8 +112,6 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
electron-workspace-install: true
- name: make build
run: yarn make-windows-x64
@@ -158,8 +154,6 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
electron-workspace-install: true
- name: make build
run: yarn make