-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 904 Bytes
/
lint_checker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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