From cfc3e4d8791a56a53c3978337f2cdddbbce68bfb Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Thu, 9 Nov 2023 13:16:08 +0800 Subject: [PATCH] feat: fix unit test flow Signed-off-by: SuZhou-Joe --- .github/workflows/unit_test_workflow.yml | 14 +++++--------- package.json | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/unit_test_workflow.yml b/.github/workflows/unit_test_workflow.yml index 4ff6319f..752b7d1a 100644 --- a/.github/workflows/unit_test_workflow.yml +++ b/.github/workflows/unit_test_workflow.yml @@ -5,16 +5,12 @@ name: Build and test # trigger on every commit push and PR for all branches except pushes for backport branches on: - push: - branches: ['*'] - paths-ignore: - - '**/*.md' - - 'docs/**' pull_request: - branches: ['*'] - paths-ignore: - - '**/*.md' - - 'docs/**' + branches: + - "*" + push: + branches: + - "*" env: OPENSEARCH_DASHBOARDS_VERSION: '2.x' NODE_OPTIONS: "--max-old-space-size=6144 --dns-result-order=ipv4first" diff --git a/package.json b/package.json index d7d5d828..427de346 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "osd": "node ../../scripts/osd", "build": "yarn plugin-helpers build", - "test": "../../node_modules/.bin/jest --config ./test/jest.config.js", + "test:jest": "../../node_modules/.bin/jest --config ./test/jest.config.js", "plugin-helpers": "node ../../scripts/plugin_helpers", "prepare": "husky install", "lint:es": "node ../../scripts/eslint",