example-package
example-package copied to clipboard
Merge trigger scripts
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 createrelease
events. -
e2e-dispatch.sh
: currently used to createworkflow_dispatch
events. -
e2e-nodejs-push.sh
: Currently used for Node.js builder e2e tests to generatepush
to branch,push
to tag,release
,create
, andworkflow_dispatch
events. -
e2e-push-tag.sh
: Currently used to createpush
to tag events. -
e2e-push.sh
: Currently used to generatepush
to branch events. -
e2e-maven-push.sh
- Currently used topush
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.
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.