Skip to content

chore: workspace migration (workflows) #1993

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

Merged
merged 3 commits into from
Jun 6, 2025

Conversation

hpouillot
Copy link
Contributor

@hpouillot hpouillot commented Jun 3, 2025

Migration PR: #1991

Requires sub-PR: #1995

Changes

  • Create setup action
  • Migrated workflows:
    • bundled-size (fails because target branch needs to have the same workflows)
    • es-check
    • library-ci:
      - [x] unit test
      - [x] playwright
      - [x] functional test
      - [x] lint
    • react
    • testcafe
    • minimum-version-ts-check

Copy link

vercel bot commented Jun 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog-js ❌ Failed (Inspect) Jun 6, 2025 1:13pm

Copy link

github-actions bot commented Jun 3, 2025

@hpouillot hpouillot force-pushed the workspace-migration-workflows branch from 147c82f to 7ccef56 Compare June 3, 2025 12:07
@hpouillot hpouillot mentioned this pull request Jun 3, 2025
6 tasks
@hpouillot hpouillot force-pushed the workspace-migration-workflows branch from 39e830e to 0cbd534 Compare June 3, 2025 14:49
@hpouillot hpouillot force-pushed the workspace-migration branch from 7b88f86 to dbde4ae Compare June 3, 2025 16:27
@hpouillot hpouillot changed the title chore: migrate workflows chore: workspace migration (workflows) Jun 3, 2025
@hpouillot hpouillot force-pushed the workspace-migration-workflows branch from 553e041 to 975e3d2 Compare June 3, 2025 18:59
@hpouillot hpouillot force-pushed the workspace-migration-workflows branch from 975e3d2 to 474c6c8 Compare June 3, 2025 19:03
@hpouillot hpouillot marked this pull request as ready for review June 4, 2025 06:57
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR implements a monorepo workspace structure by creating a reusable setup action and migrating all workflows to use it, along with reorganizing ESLint configurations into package-specific files.

  • Created .github/actions/setup action to standardize Node.js setup, pnpm installation, and dependency caching across workflows
  • Migrated all workflow files to use packages/browser working directory, reflecting new workspace structure
  • Reorganized ESLint configurations by moving package-specific rules to their respective directories
  • Added eslint-rules as a workspace package with proper CommonJS configuration
  • Updated TypeScript version checks to run against multiple Node.js versions (18, 20, 22, 23) and TypeScript versions (4.7.2, 5.5.4, latest)

16 file(s) reviewed, 13 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +64 to +65
- run: pnpm tsc -b
working-directory: packages/browser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider adding --noEmit flag to tsc command since this is just for type checking

Comment on lines 52 to 51
parserOptions: {
project: null,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Setting project to null disables TypeScript type checking. Consider using a specific tsconfig for Playwright tests instead

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that true?
do we want to turn that off?

rules: {
'no-console': 'off',
'@typescript-eslint/no-require-imports': 'off',
'no-undef': 'off',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Disabling no-undef in playground could lead to runtime errors. Consider using a more specific override

@hpouillot hpouillot force-pushed the workspace-migration branch from dbde4ae to cf8655d Compare June 4, 2025 13:53
@hpouillot hpouillot requested review from a team as code owners June 4, 2025 13:53
@hpouillot hpouillot requested review from pauldambra and veryayskiy and removed request for a team June 4, 2025 13:53
@hpouillot hpouillot force-pushed the workspace-migration-workflows branch from 76a63c5 to 704b8a3 Compare June 4, 2025 14:17
Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same... hard to test but looks reasonable
i think a few greptile comments are correct-ish
but we can always resolve that at the top-level

@hpouillot hpouillot force-pushed the workspace-migration branch from bf08543 to d20c05d Compare June 6, 2025 13:09
hpouillot added 3 commits June 6, 2025 15:13
# Ceci est le premier message de validation :

fix linting

# Ceci est le message de validation numéro 2 :

update code owners

# Ceci est le message de validation numéro 5 :

update pnpm lockfile

# Ceci est le message de validation numéro 6 :

create setup action

# Ceci est le message de validation numéro 7 :

migrate bundled-size

# Ceci est le message de validation numéro 8 :

migrate escheck

# Ceci est le message de validation numéro 9 :

checkout before calling custom action

# Ceci est le message de validation numéro 10 :

migrate esbuild and bundled-size

# Ceci est le message de validation numéro 11 :

migrate library checks
@hpouillot hpouillot force-pushed the workspace-migration-workflows branch from ffe2ac4 to 6c0fdce Compare June 6, 2025 13:13
@hpouillot hpouillot merged commit 9601d74 into workspace-migration Jun 6, 2025
18 of 25 checks passed
@hpouillot hpouillot deleted the workspace-migration-workflows branch June 6, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants