Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onboard Stylelint #140

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
- run: node -v
- run: yarn -v

- name: Checkout Plugin
- name: Checkout Plugin
uses: actions/checkout@v1
with:
with:
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}

- name: OpenSearch Dashboards Plugin Bootstrap
Expand All @@ -49,6 +49,11 @@ jobs:
max_attempts: 3
command: yarn osd bootstrap

- name: Run Stylelint
run: |
cd plugins/${{ env.PLUGIN_NAME }}
yarn lint:style

- name: Test
uses: nick-fields/retry@v1
with:
Expand Down Expand Up @@ -106,9 +111,9 @@ jobs:
- run: node -v
- run: yarn -v

- name: Checkout Plugin
- name: Checkout Plugin
uses: actions/checkout@v1
with:
with:
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}

- name: OpenSearch Dashboards Plugin Bootstrap
Expand All @@ -118,6 +123,11 @@ jobs:
max_attempts: 3
command: yarn osd bootstrap

- name: Run Stylelint
run: |
cd plugins/${{ env.PLUGIN_NAME }}
yarn lint:style

- name: Test
uses: nick-fields/retry@v1
with:
Expand All @@ -130,7 +140,7 @@ jobs:
yarn build
mv ./build/*.zip ./build/${{ env.ARTIFACT_NAME }}-${{ env.OPENSEARCH_PLUGIN_VERSION }}.zip


- name: Upload Artifact For Windows
uses: actions/upload-artifact@v1
with:
Expand Down Expand Up @@ -164,9 +174,9 @@ jobs:
- run: node -v
- run: yarn -v

- name: Checkout Plugin
- name: Checkout Plugin
uses: actions/checkout@v1
with:
with:
path: OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}

- name: OpenSearch Dashboards Plugin Bootstrap
Expand All @@ -176,6 +186,11 @@ jobs:
max_attempts: 3
command: yarn osd bootstrap

- name: Run Stylelint
run: |
cd plugins/${{ env.PLUGIN_NAME }}
yarn lint:style

- name: Test
uses: nick-fields/retry@v1
with:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"osd": "node ../../scripts/osd",
"opensearch": "node ../../scripts/opensearch",
"lint": "eslint .",
"lint:style": "node ../../scripts/stylelint",
"start": "yarn plugin-helpers start",
"build": "yarn plugin-helpers build",
"test": "../../node_modules/.bin/jest --config ./test/jest.config.js",
Expand Down Expand Up @@ -83,4 +84,4 @@
"tough-cookie": "^4.1.3",
"semver": "^7.5.2"
}
}
}