|
1 |
| -name: Linting workflow |
2 |
| -on: [push, pull_request] |
3 |
| -env: |
4 |
| - OPENSEARCH_DASHBOARDS_VERSION: 'main' |
5 |
| -jobs: |
6 |
| - run-lint: |
7 |
| - name: Run lint script |
8 |
| - runs-on: ubuntu-latest |
9 |
| - if: github.repository == 'opensearch-project/dashboards-flow-framework' |
10 |
| - steps: |
11 |
| - - name: Checkout OpenSearch Dashboards |
12 |
| - uses: actions/checkout@v2 |
13 |
| - with: |
14 |
| - repository: opensearch-project/OpenSearch-Dashboards |
15 |
| - ref: ${{ env.OPENSEARCH_DASHBOARDS_VERSION }} |
16 |
| - path: OpenSearch-Dashboards |
17 |
| - - name: Setup Node |
18 |
| - uses: actions/setup-node@v3 |
19 |
| - with: |
20 |
| - node-version-file: './OpenSearch-Dashboards/.nvmrc' |
21 |
| - registry-url: 'https://registry.npmjs.org' |
22 |
| - - name: Install Yarn |
23 |
| - # Need to use bash to avoid having a windows/linux specific step |
24 |
| - shell: bash |
25 |
| - run: | |
26 |
| - YARN_VERSION=$(node -p "require('./OpenSearch-Dashboards/package.json').engines.yarn") |
27 |
| - echo "Installing yarn@$YARN_VERSION" |
28 |
| - npm i -g yarn@$YARN_VERSION |
29 |
| - - run: node -v |
30 |
| - - run: yarn -v |
31 |
| - - name: Checkout plugin |
32 |
| - uses: actions/checkout@v2 |
33 |
| - with: |
34 |
| - path: OpenSearch-Dashboards/plugins/dashboards-flow-framework |
35 |
| - - name: Bootstrap the plugin |
36 |
| - run: | |
37 |
| - cd OpenSearch-Dashboards/plugins/dashboards-flow-framework |
38 |
| - yarn osd bootstrap |
39 |
| - - name: Run lint script |
40 |
| - run: | |
41 |
| - cd OpenSearch-Dashboards/plugins/dashboards-flow-framework |
42 |
| - yarn lint:es common/* public/* server/* |
| 1 | +# name: Linting workflow |
| 2 | +# on: [push, pull_request] |
| 3 | +# env: |
| 4 | +# OPENSEARCH_DASHBOARDS_VERSION: 'main' |
| 5 | +# jobs: |
| 6 | +# run-lint: |
| 7 | +# name: Run lint script |
| 8 | +# runs-on: ubuntu-latest |
| 9 | +# if: github.repository == 'opensearch-project/dashboards-flow-framework' |
| 10 | +# steps: |
| 11 | +# - name: Checkout OpenSearch Dashboards |
| 12 | +# uses: actions/checkout@v2 |
| 13 | +# with: |
| 14 | +# repository: opensearch-project/OpenSearch-Dashboards |
| 15 | +# ref: ${{ env.OPENSEARCH_DASHBOARDS_VERSION }} |
| 16 | +# path: OpenSearch-Dashboards |
| 17 | +# - name: Setup Node |
| 18 | +# uses: actions/setup-node@v3 |
| 19 | +# with: |
| 20 | +# node-version-file: './OpenSearch-Dashboards/.nvmrc' |
| 21 | +# registry-url: 'https://registry.npmjs.org' |
| 22 | +# - name: Install Yarn |
| 23 | +# # Need to use bash to avoid having a windows/linux specific step |
| 24 | +# shell: bash |
| 25 | +# run: | |
| 26 | +# YARN_VERSION=$(node -p "require('./OpenSearch-Dashboards/package.json').engines.yarn") |
| 27 | +# echo "Installing yarn@$YARN_VERSION" |
| 28 | +# npm i -g yarn@$YARN_VERSION |
| 29 | +# - run: node -v |
| 30 | +# - run: yarn -v |
| 31 | +# - name: Checkout plugin |
| 32 | +# uses: actions/checkout@v2 |
| 33 | +# with: |
| 34 | +# path: OpenSearch-Dashboards/plugins/dashboards-flow-framework |
| 35 | +# - name: Bootstrap the plugin |
| 36 | +# run: | |
| 37 | +# cd OpenSearch-Dashboards/plugins/dashboards-flow-framework |
| 38 | +# yarn osd bootstrap |
| 39 | +# - name: Run lint script |
| 40 | +# run: | |
| 41 | +# cd OpenSearch-Dashboards/plugins/dashboards-flow-framework |
| 42 | +# yarn lint:es common/* public/* server/* |
0 commit comments