example-package icon indicating copy to clipboard operation
example-package copied to clipboard

Merge trigger scripts

Open ianlewis opened this issue 1 year ago • 1 comments

These scripts can trigger a push, release, or workflow_dispatch event but they can do that depending on the e2e workflow file name. So we should be able to merge them.

  • e2e-create-release.sh: Currently used to create release events.
  • e2e-dispatch.sh: currently used to create workflow_dispatch events.
  • e2e-nodejs-push.sh: Currently used for Node.js builder e2e tests to generate push to branch, push to tag, release, create, and workflow_dispatch events.
  • e2e-push-tag.sh: Currently used to create push to tag events.
  • e2e-push.sh: Currently used to generate push to branch events.
  • e2e-maven-push.sh - Currently used to push for Maven builder tests
  • e2e-gradle-push.sh upcoming in #270

We should probably refactor a bit so that there isn't too much hard-to-read code branching.

There are a few things that need to happen differently based on a few things:

Workflow:

  • For nodejs workflows the Node package needs to be updated to bump the version.
  • For all other tests we don't need to do anything special.

Event type:

  • For push e2e tests we need to commit a txt file with a name of e2e/<workflow-file>.txt and push it. This will allow us to filter the e2e test triggers to only trigger on that file. This will help us fix #228.
  • For release events we need to create a new release with the appropriate tag name.

ianlewis avatar Jul 18 '23 08:07 ianlewis

The e2e-bootstrap.sh script is done but we still need to update all tears to use the new script and remove the old scripts.

ianlewis avatar Aug 15 '23 23:08 ianlewis