Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(avt): re-enabled avt e2e tests #11529

Merged
merged 2 commits into from
Jun 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 41 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,44 +168,44 @@ jobs:
if: ${{ needs.vrt-runner.result != 'success' }}
run: exit 1

# avt:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Use Node.js 16.x
# uses: actions/setup-node@v3
# with:
# node-version: '16.x'
# - uses: actions/cache@v3
# id: cache
# with:
# path: |
# node_modules
# */**/node_modules
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# - name: Install dependencies
# run: yarn install --immutable --immutable-cache
# - name: Install browsers
# run: yarn playwright install --with-deps
# - name: Build project
# run: yarn build --ignore '@carbon/sketch'
# - name: Build storybook
# run: yarn workspace @carbon/react build-storybook
# - name: Run storybook
# id: storybook
# run: |
# npx serve -l 3000 packages/react/storybook-static &
# pid=$!
# echo ::set-output name=pid::"$pid"
# - name: Run VRT
# if: github.repository == 'carbon-design-system/carbon'
# run: |
# yarn playwright test --project chromium --grep @avt
# - name: Stop storybook
# run: kill ${{ steps.storybook.outputs.pid }}
# - name: Upload test results
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: playwright-report
# path: .playwright
avt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16.x'
- uses: actions/cache@v3
id: cache
with:
path: |
node_modules
*/**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Install browsers
run: yarn playwright install --with-deps
- name: Build project
run: yarn build --ignore '@carbon/sketch'
- name: Build storybook
run: yarn workspace @carbon/react build-storybook
- name: Run storybook
id: storybook
run: |
npx serve -l 3000 packages/react/storybook-static &
pid=$!
echo ::set-output name=pid::"$pid"
- name: Run VRT
if: github.repository == 'carbon-design-system/carbon'
run: |
yarn playwright test --project chromium --grep @avt
- name: Stop storybook
run: kill ${{ steps.storybook.outputs.pid }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: playwright-report
path: .playwright