Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Chromatic to CI #191

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"jsx-a11y/anchor-has-content": 0,
"jsx-a11y/alt-text": 0,
"jsx-a11y/heading-has-content": 0,
"react-hooks/exhaustive-deps": 0,
"react-hooks/exhaustive-deps": 0
},
"overrides": [{
"files": ["*.stories.tsx"],
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Yarn Install
run: yarn
- name: Lint
Expand All @@ -19,5 +19,8 @@ jobs:
run: yarn test:ci
- name: Typescript build
run: yarn build
- name: Storybook build
run: yarn build-storybook
- name: Publish to Chromatic
uses: chromaui/action@v10
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ jobs:
runs-on: ubuntu-latest

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

- name: Yarn Install
run: yarn
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/storybook.yml

This file was deleted.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"_id": "[email protected]",
"name": "nhsuk-react-components",
"version": "3.0.0",
"readme": "README.md",
"author": {
"email": "[email protected]",
"name": "Thomas Judd-Cooper",
"email": "[email protected]",
"url": "https://tomjuddcooper.co.uk"
},
"license": "MIT",
Expand Down Expand Up @@ -33,7 +35,7 @@
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"babel-loader": "^8.2.2",
"chromatic": "^6.17.3",
"chromatic": "^10.3.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-to-json": "^3.6.2",
Expand Down
Loading
Loading