Skip to content

Commit

Permalink
github action
Browse files Browse the repository at this point in the history
Signed-off-by: Aleem Isiaka <[email protected]>
  • Loading branch information
limistah committed Dec 29, 2023
1 parent 2bf34d0 commit e858330
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
name: CI
on: [push]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['10.x', '12.x', '14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]
build-and-deploy:
name: Build, lint, and test on Node 14.x

runs-on: ubuntu

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
node-version: 14.x

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
Expand All @@ -29,4 +25,9 @@ jobs:
run: yarn test --ci --coverage --maxWorkers=2

- name: Build
run: yarn build
run: yarn build && yarn build-storybook

- name: Deploy storybook 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static # The folder the action should deploy.

0 comments on commit e858330

Please sign in to comment.