2023-06-09 01:23:04 +00:00
|
|
|
name: NocoBase FrontEnd Test
|
|
|
|
|
2024-02-08 03:35:59 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-06-09 01:23:04 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-06-30 11:41:39 +00:00
|
|
|
- next
|
2023-06-09 01:23:04 +00:00
|
|
|
paths:
|
|
|
|
- 'packages/**'
|
2024-05-14 01:23:33 +00:00
|
|
|
- '**/yarn.lock'
|
2023-06-09 01:23:04 +00:00
|
|
|
- '.github/workflows/nocobase-test-frontend.yml'
|
|
|
|
- '!packages/core/acl/**'
|
|
|
|
- '!packages/core/actions/**'
|
|
|
|
- '!packages/core/database/**'
|
|
|
|
- '!packages/core/server/**'
|
|
|
|
- '!packages/plugins/**/src/server/**'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/nocobase-test-frontend.yml'
|
|
|
|
- 'packages/**'
|
2024-05-14 01:23:33 +00:00
|
|
|
- '**/yarn.lock'
|
2023-06-09 01:23:04 +00:00
|
|
|
- '!packages/core/acl/**'
|
|
|
|
- '!packages/core/actions/**'
|
|
|
|
- '!packages/core/database/**'
|
|
|
|
- '!packages/core/server/**'
|
|
|
|
- '!packages/plugins/**/src/server/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
frontend-test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node_version: [ '18' ]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: node:${{ matrix.node_version }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2024-05-15 06:56:15 +00:00
|
|
|
|
2023-06-09 01:23:04 +00:00
|
|
|
- name: Use Node.js ${{ matrix.node_version }}
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node_version }}
|
|
|
|
cache: 'yarn'
|
2024-05-15 06:56:15 +00:00
|
|
|
|
2023-06-09 01:23:04 +00:00
|
|
|
- run: yarn install
|
|
|
|
- run: yarn test:client
|
2023-07-05 10:29:18 +00:00
|
|
|
timeout-minutes: 30
|