diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml index 4183c33c..ce93dce1 100644 --- a/.bcr/presubmit.yml +++ b/.bcr/presubmit.yml @@ -7,5 +7,6 @@ bcr_test_module: run_tests: name: "Run test module" platform: ${{ platform }} + bazel: ${{ bazel }} test_targets: - "//..." diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68252a19..7dc8a1e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,7 @@ name: Continuous Integration - test_main schedule: - cron: 13 11 * * * + workflow_dispatch: {} concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true diff --git a/ci/tools/generate_ci_workflow/internal/github/workflow.go b/ci/tools/generate_ci_workflow/internal/github/workflow.go index dfef49a1..4f80a973 100644 --- a/ci/tools/generate_ci_workflow/internal/github/workflow.go +++ b/ci/tools/generate_ci_workflow/internal/github/workflow.go @@ -27,8 +27,9 @@ func NewWorkflowFromYAML(b []byte) (*Workflow, error) { // WorkflowTriggers represents the triggers for a workflow. type WorkflowTriggers struct { - PullRequest PullRequestEvent `yaml:"pull_request"` - Schedule []Schedule `yaml:"schedule,omitempty"` + PullRequest PullRequestEvent `yaml:"pull_request"` + Schedule []Schedule `yaml:"schedule,omitempty"` + WorkflowDispatch WorkflowDispatch `yaml:"workflow_dispatch"` } // PullRequestEvent is a trigger event. @@ -41,6 +42,8 @@ type Schedule struct { Cron string `yaml:"cron"` } +type WorkflowDispatch struct{} + // Concurrency describes how concurrent workflows should be handled. type Concurrency struct { Group string `yaml:"group"` diff --git a/tests/bzlrelease_tests/rules_tests/generate_release_notes_tests/generate_release_notes_test.sh b/tests/bzlrelease_tests/rules_tests/generate_release_notes_tests/generate_release_notes_test.sh index 49b6c7e9..7fabb712 100755 --- a/tests/bzlrelease_tests/rules_tests/generate_release_notes_tests/generate_release_notes_test.sh +++ b/tests/bzlrelease_tests/rules_tests/generate_release_notes_tests/generate_release_notes_test.sh @@ -42,12 +42,12 @@ tag="v999.0.0" # Test with template actual="$( "${generate_release_notes_with_template_sh}" "${tag}" )" assert_match "name = \"cgrindel_bazel_starlib\"" "${actual}" "Did not find workspace name." -assert_match "## What's Changed" "${actual}" "Did not find release notes header." +assert_match "## What Has Changed" "${actual}" "Did not find release notes header." assert_match "bazel_starlib_dependencies()" "${actual}" "Did not find template content." # Test with workspace_name actual="$( "${generate_release_notes_with_workspace_name_sh}" "${tag}" )" assert_match "name = \"foo_bar\"" "${actual}" "Did not find workspace name." -assert_match "## What's Changed" "${actual}" "Did not find release notes header." +assert_match "## What Has Changed" "${actual}" "Did not find release notes header." assert_match "bazel_starlib_dependencies()" "${actual}" "Did not find template content." assert_match "bazel_dep\(" "${actual}" "Did not find module snippet"