forked from facebook/lexical
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
269 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
name: Lexical Core Tests | ||
# name: Lexical Core Tests | ||
|
||
on: | ||
workflow_call: | ||
# on: | ||
# workflow_call: | ||
|
||
jobs: | ||
integrity: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20.11.0] | ||
env: | ||
CI: true | ||
GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: npm | ||
- name: Install dependencies | ||
run: npm ci | ||
- run: npm run ci-check | ||
- run: npm run build | ||
- run: npm run build-www | ||
# jobs: | ||
# integrity: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# node-version: [20.11.0] | ||
# env: | ||
# CI: true | ||
# GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Use Node.js ${{ matrix.node-version }} | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: ${{ matrix.node-version }} | ||
# cache: npm | ||
# - name: Install dependencies | ||
# run: npm ci | ||
# - run: npm run ci-check | ||
# - run: npm run build | ||
# - run: npm run build-www | ||
|
||
unit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.18.0] | ||
override-react-version: ['', 'beta'] | ||
env: | ||
CI: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: npm | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Install React ${{ matrix.override-react-version }} | ||
if: matrix.override-react-version != '' | ||
# This should be safe since we are caching ~/.npm and not node_modules | ||
run: | | ||
node ./scripts/override-react.js --version=${{ matrix.override-react-version }} | ||
grep version node_modules/{react,react-dom}/package.json | ||
- run: npm run test-unit | ||
# unit: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# node-version: [18.18.0] | ||
# override-react-version: ['', 'beta'] | ||
# env: | ||
# CI: true | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Use Node.js ${{ matrix.node-version }} | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: ${{ matrix.node-version }} | ||
# cache: npm | ||
# - name: Install dependencies | ||
# run: npm ci | ||
# - name: Install React ${{ matrix.override-react-version }} | ||
# if: matrix.override-react-version != '' | ||
# # This should be safe since we are caching ~/.npm and not node_modules | ||
# run: | | ||
# node ./scripts/override-react.js --version=${{ matrix.override-react-version }} | ||
# grep version node_modules/{react,react-dom}/package.json | ||
# - run: npm run test-unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,143 +1,143 @@ | ||
name: Lexical e2e tests | ||
# name: Lexical e2e tests | ||
|
||
on: | ||
workflow_call: | ||
# on: | ||
# workflow_call: | ||
|
||
jobs: | ||
mac: | ||
strategy: | ||
matrix: | ||
node-version: [18.18.0] | ||
browser: ['chromium', 'firefox', 'webkit'] | ||
editor-mode: ['rich-text', 'plain-text'] | ||
events-mode: ['modern-events'] | ||
uses: ./.github/workflows/call-e2e-test.yml | ||
with: | ||
os: 'macos-latest' | ||
node-version: ${{ matrix.node-version }} | ||
browser: ${{ matrix.browser }} | ||
editor-mode: ${{ matrix.editor-mode }} | ||
events-mode: ${{ matrix.events-mode }} | ||
# jobs: | ||
# mac: | ||
# strategy: | ||
# matrix: | ||
# node-version: [18.18.0] | ||
# browser: ['chromium', 'firefox', 'webkit'] | ||
# editor-mode: ['rich-text', 'plain-text'] | ||
# events-mode: ['modern-events'] | ||
# uses: ./.github/workflows/call-e2e-test.yml | ||
# with: | ||
# os: 'macos-latest' | ||
# node-version: ${{ matrix.node-version }} | ||
# browser: ${{ matrix.browser }} | ||
# editor-mode: ${{ matrix.editor-mode }} | ||
# events-mode: ${{ matrix.events-mode }} | ||
|
||
linux: | ||
strategy: | ||
matrix: | ||
node-version: [18.18.0] | ||
browser: ['chromium', 'firefox'] | ||
editor-mode: ['rich-text', 'plain-text'] | ||
events-mode: ['modern-events'] | ||
uses: ./.github/workflows/call-e2e-test.yml | ||
with: | ||
os: 'ubuntu-latest' | ||
node-version: ${{ matrix.node-version }} | ||
browser: ${{ matrix.browser }} | ||
editor-mode: ${{ matrix.editor-mode }} | ||
events-mode: ${{ matrix.events-mode }} | ||
# linux: | ||
# strategy: | ||
# matrix: | ||
# node-version: [18.18.0] | ||
# browser: ['chromium', 'firefox'] | ||
# editor-mode: ['rich-text', 'plain-text'] | ||
# events-mode: ['modern-events'] | ||
# uses: ./.github/workflows/call-e2e-test.yml | ||
# with: | ||
# os: 'ubuntu-latest' | ||
# node-version: ${{ matrix.node-version }} | ||
# browser: ${{ matrix.browser }} | ||
# editor-mode: ${{ matrix.editor-mode }} | ||
# events-mode: ${{ matrix.events-mode }} | ||
|
||
windows: | ||
strategy: | ||
matrix: | ||
node-version: [18.18.0] | ||
browser: ['chromium', 'firefox'] | ||
editor-mode: ['rich-text', 'plain-text'] | ||
events-mode: ['legacy-events', 'modern-events'] | ||
exclude: | ||
- events-mode: 'legacy-events' | ||
browser: 'firefox' | ||
uses: ./.github/workflows/call-e2e-test.yml | ||
with: | ||
os: 'windows-latest' | ||
node-version: ${{ matrix.node-version }} | ||
browser: ${{ matrix.browser }} | ||
editor-mode: ${{ matrix.editor-mode }} | ||
events-mode: ${{ matrix.events-mode }} | ||
# windows: | ||
# strategy: | ||
# matrix: | ||
# node-version: [18.18.0] | ||
# browser: ['chromium', 'firefox'] | ||
# editor-mode: ['rich-text', 'plain-text'] | ||
# events-mode: ['legacy-events', 'modern-events'] | ||
# exclude: | ||
# - events-mode: 'legacy-events' | ||
# browser: 'firefox' | ||
# uses: ./.github/workflows/call-e2e-test.yml | ||
# with: | ||
# os: 'windows-latest' | ||
# node-version: ${{ matrix.node-version }} | ||
# browser: ${{ matrix.browser }} | ||
# editor-mode: ${{ matrix.editor-mode }} | ||
# events-mode: ${{ matrix.events-mode }} | ||
|
||
collab-mac: | ||
strategy: | ||
matrix: | ||
node-version: [18.18.0] | ||
browser: ['chromium', 'firefox', 'webkit'] | ||
uses: ./.github/workflows/call-e2e-test.yml | ||
with: | ||
os: 'macos-latest' | ||
node-version: ${{ matrix.node-version }} | ||
browser: ${{ matrix.browser }} | ||
editor-mode: 'rich-text-with-collab' | ||
events-mode: 'modern-events' | ||
# collab-mac: | ||
# strategy: | ||
# matrix: | ||
# node-version: [18.18.0] | ||
# browser: ['chromium', 'firefox', 'webkit'] | ||
# uses: ./.github/workflows/call-e2e-test.yml | ||
# with: | ||
# os: 'macos-latest' | ||
# node-version: ${{ matrix.node-version }} | ||
# browser: ${{ matrix.browser }} | ||
# editor-mode: 'rich-text-with-collab' | ||
# events-mode: 'modern-events' | ||
|
||
collab-linux: | ||
strategy: | ||
matrix: | ||
node-version: [18.18.0] | ||
browser: ['chromium', 'firefox'] | ||
uses: ./.github/workflows/call-e2e-test.yml | ||
with: | ||
os: 'ubuntu-latest' | ||
node-version: ${{ matrix.node-version }} | ||
browser: ${{ matrix.browser }} | ||
editor-mode: 'rich-text-with-collab' | ||
events-mode: 'modern-events' | ||
# collab-linux: | ||
# strategy: | ||
# matrix: | ||
# node-version: [18.18.0] | ||
# browser: ['chromium', 'firefox'] | ||
# uses: ./.github/workflows/call-e2e-test.yml | ||
# with: | ||
# os: 'ubuntu-latest' | ||
# node-version: ${{ matrix.node-version }} | ||
# browser: ${{ matrix.browser }} | ||
# editor-mode: 'rich-text-with-collab' | ||
# events-mode: 'modern-events' | ||
|
||
collab-windows: | ||
strategy: | ||
matrix: | ||
node-version: [18.18.0] | ||
browser: ['chromium', 'firefox'] | ||
uses: ./.github/workflows/call-e2e-test.yml | ||
with: | ||
os: 'windows-latest' | ||
node-version: ${{ matrix.node-version }} | ||
browser: ${{ matrix.browser }} | ||
editor-mode: 'rich-text-with-collab' | ||
events-mode: 'modern-events' | ||
# collab-windows: | ||
# strategy: | ||
# matrix: | ||
# node-version: [18.18.0] | ||
# browser: ['chromium', 'firefox'] | ||
# uses: ./.github/workflows/call-e2e-test.yml | ||
# with: | ||
# os: 'windows-latest' | ||
# node-version: ${{ matrix.node-version }} | ||
# browser: ${{ matrix.browser }} | ||
# editor-mode: 'rich-text-with-collab' | ||
# events-mode: 'modern-events' | ||
|
||
prod: | ||
strategy: | ||
matrix: | ||
os: ['macos-latest'] | ||
node-version: [18.18.0] | ||
browser: ['chromium'] | ||
editor-mode: ['rich-text'] | ||
events-mode: ['modern-events'] | ||
uses: ./.github/workflows/call-e2e-test.yml | ||
with: | ||
prod: true | ||
os: ${{ matrix.os }} | ||
node-version: ${{ matrix.node-version }} | ||
browser: ${{ matrix.browser }} | ||
editor-mode: ${{ matrix.editor-mode }} | ||
events-mode: ${{ matrix.events-mode }} | ||
# prod: | ||
# strategy: | ||
# matrix: | ||
# os: ['macos-latest'] | ||
# node-version: [18.18.0] | ||
# browser: ['chromium'] | ||
# editor-mode: ['rich-text'] | ||
# events-mode: ['modern-events'] | ||
# uses: ./.github/workflows/call-e2e-test.yml | ||
# with: | ||
# prod: true | ||
# os: ${{ matrix.os }} | ||
# node-version: ${{ matrix.node-version }} | ||
# browser: ${{ matrix.browser }} | ||
# editor-mode: ${{ matrix.editor-mode }} | ||
# events-mode: ${{ matrix.events-mode }} | ||
|
||
collab-prod: | ||
strategy: | ||
matrix: | ||
os: ['macos-latest'] | ||
node-version: [18.18.0] | ||
browser: ['chromium'] | ||
editor-mode: ['rich-text-with-collab'] | ||
events-mode: ['modern-events'] | ||
uses: ./.github/workflows/call-e2e-test.yml | ||
with: | ||
prod: true | ||
os: ${{ matrix.os }} | ||
node-version: ${{ matrix.node-version }} | ||
browser: ${{ matrix.browser }} | ||
editor-mode: ${{ matrix.editor-mode }} | ||
events-mode: ${{ matrix.events-mode }} | ||
# collab-prod: | ||
# strategy: | ||
# matrix: | ||
# os: ['macos-latest'] | ||
# node-version: [18.18.0] | ||
# browser: ['chromium'] | ||
# editor-mode: ['rich-text-with-collab'] | ||
# events-mode: ['modern-events'] | ||
# uses: ./.github/workflows/call-e2e-test.yml | ||
# with: | ||
# prod: true | ||
# os: ${{ matrix.os }} | ||
# node-version: ${{ matrix.node-version }} | ||
# browser: ${{ matrix.browser }} | ||
# editor-mode: ${{ matrix.editor-mode }} | ||
# events-mode: ${{ matrix.events-mode }} | ||
|
||
react-beta: | ||
strategy: | ||
matrix: | ||
# Currently using a single combination for every-patch e2e tests of | ||
# react beta to reduce cost impact | ||
editor-mode: ['rich-text'] | ||
prod: [false] | ||
uses: ./.github/workflows/call-e2e-test.yml | ||
with: | ||
os: 'macos-latest' | ||
browser: 'chromium' | ||
node-version: 18.18.0 | ||
events-mode: 'modern-events' | ||
editor-mode: ${{ matrix.editor-mode }} | ||
prod: ${{ matrix.prod }} | ||
override-react-version: beta | ||
# react-beta: | ||
# strategy: | ||
# matrix: | ||
# # Currently using a single combination for every-patch e2e tests of | ||
# # react beta to reduce cost impact | ||
# editor-mode: ['rich-text'] | ||
# prod: [false] | ||
# uses: ./.github/workflows/call-e2e-test.yml | ||
# with: | ||
# os: 'macos-latest' | ||
# browser: 'chromium' | ||
# node-version: 18.18.0 | ||
# events-mode: 'modern-events' | ||
# editor-mode: ${{ matrix.editor-mode }} | ||
# prod: ${{ matrix.prod }} | ||
# override-react-version: beta |
Oops, something went wrong.