Skip to content

[Backport 2.x] [2.17][Security Analytics] Updated detectors cypress tests #2242

[Backport 2.x] [2.17][Security Analytics] Updated detectors cypress tests

[Backport 2.x] [2.17][Security Analytics] Updated detectors cypress tests #2242

Workflow file for this run

# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
name: Lint Checker
on:
pull_request:
branches: [ '**' ]
jobs:
tests:
name: Lint Checker
runs-on: ubuntu-latest
env:
# prevents extra Cypress installation progress messages
CI: 1
# avoid warnings like "tput: No value for $TERM and no -T specified"
TERM: xterm
# make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first'
steps:
- name: Checkout cypress-test
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
path: cypress-test
- name: Run Lint
working-directory: cypress-test
run: |
echo "VERSION=$(yarn --silent pkg-version)" >> $GITHUB_ENV
npm install
yarn lint