Skip to content

Set up GitHub Actions for running tests on dependents #95

@bastilian

Description

@bastilian

We want to run the tests of dependents that use the bastilian-tabletools package[0].

For this we should set up a GitHub action that

  • Queries the list of dependent repositories
  • Runs NPM install
  • Builds the package from the current branch/PR
  • Installs/links the built package to the dependents application
  • Runs a (defined) npm task

By default it should just run npm run test, but the task for each repo should also be possible to be defined via an environment variable. For example TEST_TASKS=compliance-frontend,verify;insights-inventory-frontend,test:ct, which would set the task to run for the "compliance-frontend" to npm run verify, the task for "insights-inventory-frontend" to npm run test:ct, but all others will just use npm run test

These GitHub Actions should only be run on PRs and not block merging, but be an optional verification and alert us to potential changes required in applications.

For now we should also just query the dependents and run them on each, with the ability to ignore certain repos via an envirnoment variable.

[0] https://github.com/bastilian/tabletools/network/dependents

Metadata

Metadata

Assignees

Labels

infrastructureIssues that are related to tooling, ci, testing, releasing etc.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions