Skip to content
Merged
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
Binary file removed .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Build
uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '22.x'

- name: Build site
env:
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/sample-app-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [22.x]

steps:
- name: Checkout Repository
Expand All @@ -45,16 +45,13 @@ jobs:
- name: Run Unit Tests and generate coverage report
run: npm run test.coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

# Only run the last 2 steps when we are not on the main branch
- name: Run Storybook tests
if: ${{ !env.IS_MAIN }}
run: npm run test.storybook.ci

- name: Install test dependencies
run: npm --prefix ./test/e2e install

- name: Build and E2E test the site
if: ${{ !env.IS_MAIN }}
run: npm run start & npx wait-on --timeout 60000 http://localhost:3000 && npm run test.e2e.sauce.us
run: npm run start & npx wait-on --timeout 60000 http://localhost:3000 && npm --prefix ./test/e2e run test.saucelabs.us
31 changes: 2 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,2 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
**/.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
*.log
.project
bin
dist
screenshots
.idea
.coverage
storybook-static
.tmp
.eslintcache
.DS_Store
node_modules/
24 changes: 15 additions & 9 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
// Minimal Storybook main configuration to force webpack5 builder
module.exports = {
"stories": [
"../src/storybook/**/*.stories.mdx",
"../src/storybook/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
core: {
builder: "webpack5",
},
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-essentials",
"@storybook/preset-create-react-app"
]
}
"@storybook/addon-links",
"@storybook/addon-actions"
],
framework: {
name: "@storybook/react",
options: {}
}
};

14 changes: 12 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import '../src/index.css';

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
}
actions: { argTypesRegex: '^on[A-Z].*' },
};

export const decorators = [
(Story) => (
<MemoryRouter initialEntries={['/']}>
<Story />
</MemoryRouter>
),
];
5 changes: 0 additions & 5 deletions orchestrate.sh

This file was deleted.

Loading