-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding various ci checks * replacing npx concurrently with pnpm regex in workflow script * adding ThemeVariantGray to accommodate gray background use-cases * fixing a few accessibility errors * fixing a few storybook errors * disabling nuxt module build test until we need it * slight change to base teal to meet color contrast requirements * ignoring image elements in chromatic that are expected to change in each snapshot * documenting ThemeVariantGray * tweaks to mixin carousel * updating to storybook 8.2 * cleaning up dependencies * fixing auto imports and hmr in storybook * fixing imports in some page templates, updating node * fixing pinia errors in local storybook * fixing vue build error
- Loading branch information
1 parent
be9cc6d
commit c0110fa
Showing
61 changed files
with
3,331 additions
and
1,184 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# checks if nuxt module builds successfully | ||
|
||
name: Build Nuxt Module | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'packages/common/**' | ||
- 'packages/nuxt/**' | ||
- 'packages/vue/**' | ||
pull_request: | ||
paths: | ||
- 'packages/common/**' | ||
- 'packages/nuxt/**' | ||
- 'packages/vue/**' | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Set up Node ⬢ | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies 🧱 | ||
run: pnpm i | ||
|
||
- name: Build static Storybook 🛠 | ||
run: make nuxt-build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# https://storybook.js.org/docs/vue/writing-tests/test-runner#run-against-non-deployed-storybooks | ||
|
||
name: 'Storybook' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'apps/vue-storybook/**' | ||
- 'packages/common/**' | ||
- 'packages/vue/**' | ||
pull_request: | ||
paths: | ||
- 'apps/vue-storybook/**' | ||
- 'packages/common/**' | ||
- 'packages/vue/**' | ||
|
||
jobs: | ||
build: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Set up Node ⬢ | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies 🧱 | ||
run: pnpm i | ||
|
||
- name: Build Storybook | ||
run: make vue-storybook-build | ||
|
||
- name: Upload build to artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: storybook | ||
path: apps/vue-storybook/storybook_compiled | ||
|
||
a11y-tests: | ||
needs: build | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Set up Node ⬢ | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies 🧱 | ||
run: pnpm i | ||
|
||
- name: Install Playwright | ||
run: pnpm --filter @explorer-1/vue-storybook exec playwright install | ||
|
||
- name: Download storybook build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: storybook | ||
path: apps/vue-storybook/storybook_compiled | ||
|
||
- name: Serve Storybook & Run tests | ||
run: | | ||
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ | ||
"pnpm --filter @explorer-1/vue-storybook start" \ | ||
"pnpm --filter @explorer-1/vue-storybook test:ci" | ||
publish: | ||
needs: [build, a11y-tests] | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Set up Node ⬢ | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies 🧱 | ||
run: pnpm i | ||
|
||
- name: Download storybook build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: storybook | ||
path: apps/vue-storybook/storybook_compiled | ||
|
||
- uses: chromaui/action@latest | ||
# Options required for Chromatic's GitHub Action | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
storybookBaseDir: 'apps/vue-storybook' | ||
storybookBuildDir: 'apps/vue-storybook/storybook_compiled' | ||
autoAcceptChanges: 'main' | ||
exitZeroOnChanges: true | ||
exitOnceUploaded: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# checks if vue package builds successfully | ||
|
||
name: Vue | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'packages/common/**' | ||
- 'packages/vue/**' | ||
pull_request: | ||
paths: | ||
- 'packages/common/**' | ||
- 'packages/vue/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Set up Node ⬢ | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies 🧱 | ||
run: pnpm i | ||
|
||
- name: Build Vue package 🛠 | ||
run: make vue-build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v20.13.1 | ||
v20.15.1 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { TestRunnerConfig } from '@storybook/test-runner' | ||
import { injectAxe, checkA11y } from 'axe-playwright' | ||
|
||
/* | ||
* See https://storybook.js.org/docs/writing-tests/test-runner#test-hook-api | ||
* to learn more about the test-runner hooks API. | ||
*/ | ||
const config: TestRunnerConfig = { | ||
async preVisit(page) { | ||
await injectAxe(page) | ||
}, | ||
async postVisit(page) { | ||
await checkA11y(page, '#storybook-root', { | ||
detailedReport: true, | ||
detailedReportOptions: { | ||
html: true | ||
} | ||
}) | ||
} | ||
} | ||
|
||
export default config |
This file contains 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
Oops, something went wrong.