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

Bi 24 : Review 1 #6

Closed
wants to merge 7 commits into from
Closed
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
16 changes: 7 additions & 9 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Actions Workflow
name: Workflow
on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
build-project: #First Job is to check the code formatting, linting and build the project.
if: github.event.pull_request.draft == false
name: Run Prettier, Lint and Build Checks
runs-on: ubuntu-latest

Expand Down Expand Up @@ -39,18 +40,15 @@ jobs:
fi

chromatic-deployment: #Second Job is to deploy the project to Chromatic
# Operating System
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
name: Deploy Storybook to Chromatic
runs-on: ubuntu-latest # Operating System
# Job steps
steps:
- name: Checkout Repository
uses: actions/checkout@v1

- name: Install Node.js
uses: actions/setup-node@v2
uses: actions/checkout@v2
with:
node-version: 18

fetch-depth: 0 # 👈 Required to retrieve git history
- name: Install dependencies
run: npm install
# 👇 Adds Chromatic as a step in the workflow
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "next lint",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"prettier": "npx prettier . --check"
"prettier": "npx prettier . --check",
"chromatic": "chromatic --exit-zero-on-changes"
},
"dependencies": {
"autoprefixer": "10.4.16",
Expand Down