Skip to content

Commit

Permalink
fix: include avt report in release workflow (#5582)
Browse files Browse the repository at this point in the history
* chore: include avt reports in releases

* chore: add avt report file to package json
  • Loading branch information
matthewgallo committed Jun 25, 2024
1 parent a1c231d commit a8c8fd9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/release-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,32 @@ jobs:
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Install browsers
run: yarn playwright install --with-deps
- name: Continuous integration check (includes build)
run: yarn ci-check
- name: Run storybook
id: storybook
run: |
npx serve -l 3000 packages/core/storybook-static &
pid=$!
echo "pid=$pid" >> $GITHUB_OUTPUT
- uses: ./actions/wait-for-it
with:
URL: 'http://localhost:3000'
timeout-minutes: 3
- name: Run AVT
if: github.repository == 'carbon-design-system/ibm-products'
run: |
yarn playwright test --project chromium --grep @avt --shard="${{ matrix.shard }}/4"
- name: Stop storybook
run: kill ${{ steps.storybook.outputs.pid }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: playwright-avt-report
path: .playwright
- name: Set NPM token
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.CARBON_BOT_NPM_TOKEN }}" >> .npmrc
Expand Down
3 changes: 2 additions & 1 deletion packages/ibm-products/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"lib",
"scss",
"flags.js",
"telemetry.yml"
"telemetry.yml",
".playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json"
],
"keywords": [
"carbon",
Expand Down

0 comments on commit a8c8fd9

Please sign in to comment.