123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- name: Tests
- on:
- workflow_call: null
- jobs:
- e2e:
- name: E2E Tests
- timeout-minutes: 60
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-node@v3
- with:
- node-version: 20
- - name: Install dependencies
- run: npm ci
- - name: Install Playwright Browsers
- run: npx playwright install --with-deps
- working-directory: packages/quill
- - name: Run Playwright tests
- run: npm run test:e2e
- working-directory: packages/quill
- fuzz:
- name: Fuzz Tests
- runs-on: ubuntu-latest
- steps:
- - name: Git checkout
- uses: actions/checkout@v3
- - name: Use Node.js
- uses: actions/setup-node@v3
- with:
- node-version: 20
- - run: npm ci
- env:
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
- - run: npm run test:fuzz -w quill
- unit:
- name: Unit Tests
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- browser:
- - firefox
- steps:
- - name: Git checkout
- uses: actions/checkout@v3
- - name: Use Node.js
- uses: actions/setup-node@v3
- with:
- node-version: 20
- - uses: saucelabs/sauce-connect-action@v2
- with:
- tunnelName: github-actions-${{github.run_id}}.${{github.run_number}}
- username: ${{ secrets.SAUCE_USERNAME }}
- accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
- region: us-west
- noSSLBumpDomains: all
- - run: npm ci
- env:
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
- - run: npm run lint
- - run: npm run test:unit -w quill || npm run test:unit -w quill || npm run
- test:unit -w quill
- env:
- BROWSER: ${{ matrix.browser }}
- PROVIDER: Sauce Labs
- SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
- SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
- SAUCE_TUNNEL_NAME: github-actions-${{github.run_id}}.${{github.run_number}}
|