Skip to content

How to set multiple working directories, possibly dynamically #500

@nicopoore

Description

@nicopoore

Hey! I'm wondering if it's possible, using this action, to have a monorepo with multiple projects, and running this action on a PR for each project that was modified within that branch.

I'm using Moonrepo to run my CI tasks (which include the coverage tasks), which has an --affected flag to only run tests on affected projects, so I guess it's a multi layered question:

  • Is there a way to set multiple working-directory within the same action?
  • If so, is there a way to make it ignore missing coverage.json files instead of failing the action? Considering some of the projects won't have had tests run.
  • If not, would the only way to run this be to get the affected directories (maybe from a matrix), and then run this action once per each affected project, setting the working-directory dynamically?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions