Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger integration tests on push to main #2035

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Dec 19, 2024

Changes

The existing workflow already had 2 trigger conditions, so instead of adding a third (and seeing more "skipped" jobs), I split them up into dedicated workflow files, each with their own trigger condition.

The integration test status is reported back via commit status.

Tests

We can confirm that everything works as expected as this PR moves from here to the merge group to main.

@pietern pietern changed the title Trigger nightly on main Trigger integration tests on push to main Dec 19, 2024
environment: "test-trigger-is"

if: needs.check-token.outputs.has_token == 'true'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was github.event_name == 'pull_request' not needed in the first place?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was because the workflow ran for PRs as well as merge group events.

@pietern pietern enabled auto-merge December 19, 2024 10:57
.github/workflows/integration-approve.yml Outdated Show resolved Hide resolved
.github/workflows/integration-main.yml Outdated Show resolved Hide resolved
@denik denik disabled auto-merge December 19, 2024 10:58
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 2035
  • Commit SHA: 3e72850704e4b1b5733dcfd72cd93e736b73c3e7

Checks will be approved automatically on success.

@pietern pietern enabled auto-merge December 19, 2024 11:10
@pietern pietern added this pull request to the merge queue Dec 19, 2024
Merged via the queue into main with commit f939e57 Dec 19, 2024
9 checks passed
@pietern pietern deleted the trigger-nightly-on-main branch December 19, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants