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

Improving test isolation in Workflow #78

Open
matiassimon opened this issue Jan 28, 2024 · 0 comments
Open

Improving test isolation in Workflow #78

matiassimon opened this issue Jan 28, 2024 · 0 comments

Comments

@matiassimon
Copy link

Summary:

The current workflow runs all tests together in a single job, causing two main issues:

  1. Tracking Difficulty:

    • It's challenging to distinguish which examples are functioning correctly and which aren't.
  2. Dependency Interference:

    • Shared system dependencies might lead to misleading test results; an example might pass due to a dependency installed by a different example.

Proposed Solutions:

  1. Matrix Strategy:

    • Consider replacing Lerna with a matrix strategy in the workflow, iterating over each package's folder independently.
    strategy:
      matrix:
        folder:
          - example1
          - example2
          - example3
        node-version:
          - 16
          - 18
  2. Separate Repositories:

    • Alternatively, use individual repositories for each example, each with its own workflows. Add them as submodules to a main repository.
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

No branches or pull requests

1 participant