Verify Storybook #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Verify Storybook | |
| on: | |
| pull_request: | |
| paths: | |
| - 'packages/grafana-ui/**' | |
| - '!docs/**' | |
| - '!*.md' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'packages/grafana-ui/**' | |
| - '!docs/**' | |
| - '!*.md' | |
| permissions: {} | |
| jobs: | |
| verify-storybook: | |
| name: Verify Storybook | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Run Storybook and E2E tests | |
| uses: cypress-io/github-action@108b8684ae52e735ff7891524cbffbcd4be5b19f | |
| 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 |