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

Attempt to test/fix the workflow with a PR from fork #6199

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.

extended-tests:
- changed-files:
- any-glob-to-any-file: '**'
14 changes: 5 additions & 9 deletions .github/workflows/after-approval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ concurrency:

jobs:
label-pr:
if: github.event.review.state == 'approved' && !contains(github.event.pull_request.labels.*.name, 'extended-tests')
if: github.event.review.state == 'commented' && !contains(github.event.pull_request.labels.*.name, 'extended-tests')
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Add label for extended tests
env:
GH_TOKEN: ${{ secrets.LEXICAL_BOT_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
run: |
echo "Adding label 'extended-tests' to PR $NUMBER"
gh pr edit "$NUMBER" --add-label "extended-tests" || (echo "Failed to add label" && exit 1)
- uses: actions/checkout@v4
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.LEXICAL_BOT_TOKEN }}"
96 changes: 48 additions & 48 deletions .github/workflows/call-core-tests.yml
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
Loading
Loading