mirror of https://github.com/grafana/grafana
Chore: Migrate storybook verification to GHAs (#101968)
* baldm0mma/ add storybook-verification workflow file * baldm0mma/ build out storybook jobs to drone spec * baldm0mma/ add node fallback and remove runner id * baldm0mma/ replace with cypress action * baldm0mma/ update codeowners * baldm0mma/ add workflow dispatch for testing * baldm0mma/ update trigger for testing * baldm0mma/ update path * baldm0mma/ update paths * baldm0mma/ update node file1036-docs-add-documentation-for-alert-rule-history
parent
7dd6f52630
commit
f296b66b37
@ -0,0 +1,40 @@ |
|||||||
|
name: Verify Storybook |
||||||
|
|
||||||
|
on: |
||||||
|
pull_request: |
||||||
|
paths: |
||||||
|
- 'packages/grafana-ui/**' |
||||||
|
- '.github/workflows/storybook-verification.yml' |
||||||
|
- '!docs/**' |
||||||
|
- '!*.md' |
||||||
|
|
||||||
|
jobs: |
||||||
|
verify-storybook: |
||||||
|
name: Verify Storybook |
||||||
|
runs-on: ubuntu-latest |
||||||
|
|
||||||
|
steps: |
||||||
|
- name: Checkout code |
||||||
|
uses: actions/checkout@v4 |
||||||
|
|
||||||
|
- name: Setup Node.js |
||||||
|
uses: actions/setup-node@v4 |
||||||
|
with: |
||||||
|
node-version-file: 'package.json' |
||||||
|
cache: 'yarn' |
||||||
|
|
||||||
|
- name: Install dependencies |
||||||
|
run: yarn install --immutable |
||||||
|
|
||||||
|
- name: Run Storybook and E2E tests |
||||||
|
uses: cypress-io/github-action@v6 |
||||||
|
with: |
||||||
|
browser: chrome |
||||||
|
start: yarn storybook --quiet |
||||||
|
wait-on: 'http://localhost:9001' |
||||||
|
wait-on-timeout: 60 |
||||||
|
command: yarn e2e:storybook |
||||||
|
install: false |
||||||
|
env: |
||||||
|
HOST: localhost |
||||||
|
PORT: 9001 |
Loading…
Reference in new issue