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
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
Onboard Stylelint
Signed-off-by: Matt Provost <[email protected]>
BSFishy committed Jul 11, 2023
commit 56d48e442e6d7f9bca0df4da65c4b63bfae633f0
Original file line number Diff line number Diff line change
@@ -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
@@ -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:
@@ -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
@@ -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:
@@ -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:
@@ -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
@@ -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:
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
@@ -83,4 +84,4 @@
"tough-cookie": "^4.1.3",
"semver": "^7.5.2"
}
}
}