Skip to content

Commit

Permalink
ci: defer smoke-tests
Browse files Browse the repository at this point in the history
We have to do #216
  • Loading branch information
Zidious authored Jan 10, 2025
1 parent 909b3ff commit 804ea4f
Showing 1 changed file with 52 additions and 51 deletions.
103 changes: 52 additions & 51 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,54 +15,55 @@ jobs:
- run: npm install
- run: npm run lint

smoke-tests:
name: Smoke Tests
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
# We don't want to fail the whole matrix if one job fails
# Makes it harder to debug what went wrong if it ends early
fail-fast: false
matrix:
include:
- directory: cypress/basic
- directory: cypress/iframes
additional-steps: cd cypress/iframes && node server.js &
- directory: cypress/manual-mode
- directory: cypress/multi-page
- directory: playwright/basic
playwright: true
- directory: playwright/manual-mode
playwright: true
- directory: playwright/typescript-multi-page
playwright: true
- directory: playwright-test/basic
playwright: true
- directory: playwright-test/multi-page
playwright: true
- directory: puppeteer/basic
- directory: puppeteer/typescript-multi-page
- directory: wdio/test-runner/typescript
- directory: wdio/typescript-multi-page
- directory: wdio/v7/typescript-basic
# WDIO v7 does not work on Node > 16. Please refer to `setup.ts` for more information.
node-version: 16
- directory: webdriverjs/basic
- directory: webdriverjs/testing
- directory: webdriverjs/typescript-multi-page
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version || '20' }}
- name: Install Playwright
if: ${{ matrix.playwright }}
run: npx playwright install
- name: Additional steps
if: ${{ matrix.additional-steps }}
run: ${{ matrix.additional-steps }}
- name: Run tests
run: cd ${{ matrix.directory }} && npm install && npm test
env:
API_KEY: ${{ secrets.AXE_DEVHUB_API_KEY }}
# TODO: https://github.com/dequelabs/watcher-examples/issues/216
# smoke-tests:
# name: Smoke Tests
# needs: lint
# runs-on: ubuntu-latest
# timeout-minutes: 10
# strategy:
# # We don't want to fail the whole matrix if one job fails
# # Makes it harder to debug what went wrong if it ends early
# fail-fast: false
# matrix:
# include:
# - directory: cypress/basic
# - directory: cypress/iframes
# additional-steps: cd cypress/iframes && node server.js &
# - directory: cypress/manual-mode
# - directory: cypress/multi-page
# - directory: playwright/basic
# playwright: true
# - directory: playwright/manual-mode
# playwright: true
# - directory: playwright/typescript-multi-page
# playwright: true
# - directory: playwright-test/basic
# playwright: true
# - directory: playwright-test/multi-page
# playwright: true
# - directory: puppeteer/basic
# - directory: puppeteer/typescript-multi-page
# - directory: wdio/test-runner/typescript
# - directory: wdio/typescript-multi-page
# - directory: wdio/v7/typescript-basic
# # WDIO v7 does not work on Node > 16. Please refer to `setup.ts` for more information.
# node-version: 16
# - directory: webdriverjs/basic
# - directory: webdriverjs/testing
# - directory: webdriverjs/typescript-multi-page
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version || '20' }}
# - name: Install Playwright
# if: ${{ matrix.playwright }}
# run: npx playwright install
# - name: Additional steps
# if: ${{ matrix.additional-steps }}
# run: ${{ matrix.additional-steps }}
# - name: Run tests
# run: cd ${{ matrix.directory }} && npm install && npm test
# env:
# API_KEY: ${{ secrets.AXE_DEVHUB_API_KEY }}

0 comments on commit 804ea4f

Please sign in to comment.