Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tnagorra committed Nov 10, 2023
1 parent ea9a16d commit ee6aa67
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- Addresses xxxxxx
- Depends on xxxxxx

## Changes

* Detailed list or prose of changes
* Breaking changes
* Changes to configurations

## This PR doesn't introduce any:

- [ ] temporary files, auto-generated files or secret keys
- [ ] build works
- [ ] eslint issues
- [ ] typescript issues
- [ ] `console.log` meant for debugging
- [ ] typos
- [ ] unwanted comments
46 changes: 46 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# .github/workflows/chromatic.yml

# name of our action
name: 'Chromatic'
# the event that will trigger the action
on: push

# what the action will do
jobs:
publish-chromatic:
# the operating system it will run on
runs-on: ubuntu-latest
# the list of steps that the action will go through
steps:
- uses: actions/setup-node@v3
with:
node-version: 16

- uses: actions/checkout@v1

- name: Install Dependencies
run: yarn install

- name: Install Dependencies on Library
run: yarn install
working-directory: lib

- name: 🤞 Build Library 🧪
run: yarn build
working-directory: lib

- name: 🤞 Run Typecheck 🧪
run: yarn typecheck
working-directory: storybook

- name: 🤞 Run Lint 🧪
run: yarn lint
working-directory: storybook

- name: 🤞 Publish to Chromatic 🧪
uses: chromaui/action@v1
# options required to the GitHub chromatic action
with:
workingDir: storybook
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# .github/workflows/chromatic.yml

# name of our action
name: 'CI'
# the event that will trigger the action
on: push

# what the action will do
jobs:
build:
# the operating system it will run on
runs-on: ubuntu-latest
# the list of steps that the action will go through
steps:
- uses: actions/setup-node@v3
with:
node-version: 16

- uses: actions/checkout@v1

- name: Install Dependencies
run: yarn install

- name: Install Dependencies on Library
run: yarn install
working-directory: lib

- name: 🤞 Run Typecheck 🧪
run: yarn typecheck
working-directory: lib

- name: 🤞 Run Lint 🧪
run: yarn lint
working-directory: lib

- name: 🤞 Build 🧪
run: yarn build
working-directory: lib

0 comments on commit ee6aa67

Please sign in to comment.