From 17455c8894422a371da04f75346727aac1be0a03 Mon Sep 17 00:00:00 2001 From: Jin Lee Date: Tue, 21 Sep 2021 18:54:52 -0700 Subject: [PATCH] feat(chromatic): uncomment github action jobs except percy --- .github/workflows/test.yml | 129 ++++++++++++++++++------------------- 1 file changed, 64 insertions(+), 65 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 861b97a10..684589f6d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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: @@ -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