[Backport 2.x] Fix Alerts SA tests #2283
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |