Skip to content
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
112 changes: 56 additions & 56 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
# Build and deploy Storybook to GitHub Pages
# https://storybook.js.org/docs/react/sharing/publish-storybook#github-pages
name: Deploy Storybook to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "24"

- name: Install dependencies
run: npm install

- name: Build Storybook
env:
# Base path for GitHub Pages: https://<owner>.github.io/<repo>/
STORYBOOK_BASE_PATH: /${{ github.event.repository.name }}/
run: npm run build-storybook

- name: Upload Storybook artifact
uses: actions/upload-pages-artifact@v3
with:
path: storybook-static

- name: Deploy to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Build and deploy Storybook to GitHub Pages
# https://storybook.js.org/docs/react/sharing/publish-storybook#github-pages
name: Deploy Storybook to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "24"
- name: Install dependencies
run: npm install
- name: Build Storybook
env:
# Base path for GitHub Pages: https://<owner>.github.io/<repo>/
STORYBOOK_BASE_PATH: /${{ github.event.repository.name }}/
run: npm run build-storybook
- name: Upload Storybook artifact
uses: actions/upload-pages-artifact@v3
with:
path: storybook-static
- name: Deploy to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/test-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: UI Tests

on: [push]

jobs:
test:
runs-on: ubuntu-latest
container:
# Using the Playwright image to ensure browsers are available for the test runner
image: mcr.microsoft.com/playwright:v1.52.0-noble
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.12.0

- name: Install dependencies
run: npm install

# Using test-storybook:ci to build Storybook and run tests against it
- name: Run tests
run: npm run test-storybook:ci
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package-lock.json
/node_modules
/dist
storybook-static
debug-storybook.log
/node_modules
/dist
storybook-static
debug-storybook.log
config.bat
Loading
Loading