Skip to content

Commit

Permalink
NEXT-33446 - comment out job for storybook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Feb 5, 2024
1 parent d85f220 commit a4771fb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./packages/component-library./storybook-static/
source-dir: ./packages/component-library/storybook-static/
70 changes: 35 additions & 35 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,38 +56,38 @@ jobs:
run: npm ci
- name: unit
run: npm run test:unit
storybook-tests:
name: Storybook Tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
# - name: Retrieve the cached "node_modules" directory (if present)
# uses: actions/cache@v3
# id: node-cache
# with:
# path: node_modules
# key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies (if the cached directory was not found)
# if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci
- name: Install Playwright
run: npx playwright install
- name: Create the static pages directory locally in CI
run: npm --prefix ./packages/component-library run build-storybook
- name: Run Tests
id: storybookTests
run: |
cd ./packages/component-library &&
npx concurrently --kill-others --success first --names "SB,TEST" --prefix-colors "magenta,blue" \
"http-server storybook-static -a 127.0.0.1 --port 6006" \
"wait-on http://127.0.0.1:6006 && npm run test-storybook"
- name: Archive visual test diffs
uses: actions/upload-artifact@v3
if: always()
with:
name: visual-test-diffs
path: ./packages/component-library/__snapshots__
# storybook-tests:
# name: Storybook Tests
# timeout-minutes: 60
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Setup Node.js
# uses: actions/setup-node@v3
# # - name: Retrieve the cached "node_modules" directory (if present)
# # uses: actions/cache@v3
# # id: node-cache
# # with:
# # path: node_modules
# # key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - name: Install dependencies (if the cached directory was not found)
# # if: steps.node-cache.outputs.cache-hit != 'true'
# run: npm ci
# - name: Install Playwright
# run: npx playwright install
# - name: Create the static pages directory locally in CI
# run: npm --prefix ./packages/component-library run build-storybook
# - name: Run Tests
# id: storybookTests
# run: |
# cd ./packages/component-library &&
# npx concurrently --kill-others --success first --names "SB,TEST" --prefix-colors "magenta,blue" \
# "http-server storybook-static -a 127.0.0.1 --port 6006" \
# "wait-on http://127.0.0.1:6006 && npm run test-storybook"
# - name: Archive visual test diffs
# uses: actions/upload-artifact@v3
# if: always()
# with:
# name: visual-test-diffs
# path: ./packages/component-library/__snapshots__

0 comments on commit a4771fb

Please sign in to comment.