Skip to content

Commit

Permalink
feat(chromatic): uncomment github action jobs except percy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin Lee authored and jinlee93 committed Sep 22, 2021
1 parent 42c64a0 commit 17455c8
Showing 1 changed file with 64 additions and 65 deletions.
129 changes: 64 additions & 65 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,59 @@ name: Build & Test CI
on: push

jobs:
# test:
# runs-on: ubuntu-latest
test:
runs-on: ubuntu-latest

# strategy:
# matrix:
# node-version: [12.x, 14.x]
strategy:
matrix:
node-version: [12.x, 14.x]

# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v2
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'yarn'
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

# - name: Install Dependencies ⬆️
# run: yarn install --immutable
- name: Install Dependencies ⬆️
run: yarn install --immutable

# - name: Type check πŸ“‹
# run: yarn run types
- name: Type check πŸ“‹
run: yarn run types

# - name: Run CI Tests βœ…
# run: yarn workspaces foreach run test:ci
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# CI: true
- name: Run CI Tests βœ…
run: yarn workspaces foreach run test:ci
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CI: true

# build:
# runs-on: ubuntu-latest
build:
runs-on: ubuntu-latest

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

# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v2
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'yarn'
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

# - name: Install Dependencies ⬆️
# run: yarn install --immutable
- name: Install Dependencies ⬆️
run: yarn install --immutable

# - name: Build Dist πŸ”§
# run: yarn run build
- name: Build Dist πŸ”§
run: yarn run build

# - name: Build Storybook πŸ“š
# run: yarn workspaces foreach run build:storybook
- name: Build Storybook πŸ“š
run: yarn workspaces foreach run build:storybook

# - name: Run Accessibility Tests πŸ’›
# run: yarn workspaces foreach run storybook:axeOnly
- name: Run Accessibility Tests πŸ’›
run: yarn workspaces foreach run storybook:axeOnly

# - name: Percy Snapshots πŸ“Έ
# run: yarn workspaces foreach run snapshot
Expand All @@ -76,9 +76,8 @@ jobs:
fetch-depth: 0 # πŸ‘ˆ Required to retrieve git history
- name: Install dependencies
run: yarn install --immutable
# Build Storybook
- name: Build Storybook
run: yarn workspaces foreach run build:storybook
run: yarn workspace @chanzuckerberg/eds-components run build:storybook
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
Expand All @@ -87,31 +86,31 @@ jobs:
workingDir: packages/components
storybookBuildDir: storybook-static

# lint:
# runs-on: ubuntu-latest
lint:
runs-on: ubuntu-latest

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

# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v2
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'yarn'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

# - name: Install Dependencies ⬆️
# run: yarn install --immutable
- name: Install Dependencies ⬆️
run: yarn install --immutable

# - name: Lint Commit Messages πŸ‘•
# uses: wagoid/commitlint-github-action@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint Commit Messages πŸ‘•
uses: wagoid/commitlint-github-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Lint Javascript + SCSS πŸ‘•
# run: yarn run lint
- name: Lint Javascript + SCSS πŸ‘•
run: yarn run lint

0 comments on commit 17455c8

Please sign in to comment.