Skip to content

Commit

Permalink
Fixed cypress and unit test workflows after bumping main to 3.0. (#566)
Browse files Browse the repository at this point in the history
* Fixed cypress workflow after bumping main to 3.0.

Signed-off-by: AWSHurneyt <[email protected]>

* Fixed cypress workflow after bumping main to 3.0.

Signed-off-by: AWSHurneyt <[email protected]>

* Fixed unit test workflow after bumping main to 3.0.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt authored May 2, 2023
1 parent eeb6b52 commit 3d95270
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cypress-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
OPENSEARCH_DASHBOARDS_VERSION: 'main'
OPENSEARCH_VERSION: '3.0.0-SNAPSHOT'
SECURITY_ANALYTICS_BRANCH: 'main'
GRADLE_VERSION: '7.6.1'
jobs:
tests:
name: Run Cypress E2E tests
Expand Down Expand Up @@ -45,6 +46,11 @@ jobs:
repository: opensearch-project/security-analytics
ref: ${{ env.SECURITY_ANALYTICS_BRANCH }}

- name: Set up Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: ${{ env.GRADLE_VERSION }}

- name: Run opensearch with plugin
run: |
cd security-analytics
Expand Down
6 changes: 6 additions & 0 deletions test/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ module.exports = {
],
clearMocks: true,
testPathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/node_modules/'],
transformIgnorePatterns: [
// ignore all node_modules except those which require babel transforms to
// handle newer syntax like `??=` which is not already transformed by the
// package and not yet supported in the node version we use.
'[/\\\\]node_modules(?![\\/\\\\](vega-lite))[/\\\\].+\\.js$',
],
modulePathIgnorePatterns: ['securityAnalyticsDashboards'],
testEnvironment: 'jsdom',
snapshotSerializers: ['enzyme-to-json/serializer'],
Expand Down

0 comments on commit 3d95270

Please sign in to comment.