mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 13:46:45 +00:00
4404f5fa13
* feat: add @nocobase/plugin-field-encryption * fix: bug * fix: hook * fix: add operators * feat: add hidden * fix: i18n * fix: bug * feat: env add ENCRYPTION_FIELD_KEY * fix: exception handling * fix: error message i18n * fix: add `addFieldInterfaces()` alias * fix: bug * fix: bug * fix: bug * fix: bug * fix: workflow env * fix: bug * fix: e2e * fix: e2e bug * fix: move `checkKey()` to field * fix: move EncryptionField to database package * fix: move encryption plugin to pro * chore: encryption field in field type map * fix: unit test * fix: remove console * fix: add more value check * fix: bug * fix: bug * fix: bug --------- Co-authored-by: chenos <chenlinxh@gmail.com> Co-authored-by: Chareice <chareice@live.com>
76 lines
2.1 KiB
YAML
76 lines
2.1 KiB
YAML
name: Test on Windows
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- next
|
|
paths:
|
|
- 'package.json'
|
|
- '**/yarn.lock'
|
|
- 'packages/core/acl/**'
|
|
- 'packages/core/actions/**'
|
|
- 'packages/core/database/**'
|
|
- 'packages/core/resourcer/**'
|
|
- 'packages/core/data-source-manager/**'
|
|
- 'packages/core/server/**'
|
|
- 'packages/core/utils/**'
|
|
- 'packages/plugins/**/src/server/**'
|
|
- '.github/workflows/nocobase-test-windows.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'package.json'
|
|
- '**/yarn.lock'
|
|
- 'packages/core/acl/**'
|
|
- 'packages/core/actions/**'
|
|
- 'packages/core/database/**'
|
|
- 'packages/core/resourcer/**'
|
|
- 'packages/core/data-source-manager/**'
|
|
- 'packages/core/server/**'
|
|
- 'packages/core/utils/**'
|
|
- 'packages/plugins/**/src/server/**'
|
|
- '.github/workflows/nocobase-test-windows.yml'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-2022
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '18'
|
|
|
|
- run: yarn config set network-timeout 600000 -g
|
|
|
|
- name: Get yarn cache directory path
|
|
id: yarn-cache-dir-path
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
- uses: actions/cache@v3
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
with:
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-yarn-
|
|
|
|
- name: Install project dependencies
|
|
run: yarn --prefer-offline
|
|
|
|
- name: Test with Sqlite
|
|
run: yarn test --server --single-thread=false
|
|
env:
|
|
LOGGER_LEVEL: error
|
|
DB_DIALECT: sqlite
|
|
DB_STORAGE: /tmp/db.sqlite
|
|
DB_TEST_PREFIX: test_
|
|
DB_UNDERSCORED: ${{ matrix.underscored }}
|
|
ENCRYPTION_FIELD_KEY: 1%&glK;<UA}aIxJVc53-4G(rTi0vg@J]
|