Skip to content

Catch up to upstream #44

Catch up to upstream

Catch up to upstream #44

Workflow file for this run

name: CI
on:
push:
branches:
- main
- catch-up # TODO: Remove
pull_request:
branches:
- main
jobs:
e2e:
name: E2E Tests
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
- run: npm run test:fuzz -w @reedsy/quill
unit:
name: Unit Tests
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit, firefox]
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx playwright install --with-deps
- run: npm run lint
- run: npm run test:unit -w @reedsy/quill || npm run test:unit -w @reedsy/quill || npm run test:unit -w @reedsy/quill
env:
BROWSER: ${{ matrix.browser }}
release:
needs:
- e2e
- fuzz
- unit
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://npm.pkg.github.com'
- name: Install
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
run: ./release.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}