diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 4341e6127..ab93d8898 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -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/ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 06f057dfc..ac69db99d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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__