Skip to content

test against live gh actions on boilerplate repos #22

@maxheld83

Description

@maxheld83

this would be an alternative / addition to #14.

This could be implemented as a "simple" testthat unit test.

  1. There exist a bunch of boilerplate projects inside of the ghaction repo. (We can use the commonly used starter projects from RStudio for example).
  2. Once the test gets run:
  • the relevant boilerplate projects gets pushed to a (new?) repo on github.com (this might be possible inside of R using the git wrappers from usethis.
  • with the currently templated version of .github/main.workflow.
  • then the test waits for the github api (via gh::gh) to signal that the repo in question has successfully run through the action (or actually has failed on some of them, that we might also want to test!).
  • then the test returns the appropriate condition.

The same test gets run on every commit inside of GitHub actions (meta), though that might require some more git auth.

Also, the tests would have to run in parallel, otherwise this would take too long.

Aaaand we should ask github first whether this violates their TOS, because we're kinda programmatically querying github actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingtesting ghactions

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions