3a028ac25c
CI: move workflows/actions to actions (#104711)
* move workflows/actions to actions
* rerun actions
* fix setup-go v5
* unpinned unnecessary pins
* update CODEOWONERS
* update CODEOWONERS
* remove remove-milestone from codeowners
* remove bad key
(cherry picked from commit 2436b4e097)
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
name: Verify Storybook
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'packages/grafana-ui/**'
|
|
- '!docs/**'
|
|
- '!*.md'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'packages/grafana-ui/**'
|
|
- '!docs/**'
|
|
- '!*.md'
|
|
|
|
jobs:
|
|
verify-storybook:
|
|
name: Verify Storybook
|
|
runs-on: ubuntu-latest
|
|
|
|
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: 'package.json'
|
|
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
|