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

Matrix strategy based pre-merge testing. #1680

Merged
merged 3 commits into from
Sep 3, 2023

Conversation

TrevorBenson
Copy link
Collaborator

Description

Use strategy matrix for pre-merge tests. Creates a distro key in the strategy matrix and then any item within this list is used to call the specific distro's build for guild-deploy.sh and cabal-build-all.sh testing.

Where should the reviewer start?

Compare to an existing pre-merge. Adds a few lines to setup the matrix, and then abstracts the distribution name from later commands and uses ${{ matrix.distribution }} in its place.

Motivation and context

  • One workflow vs one workflow per distro.
  • Manually disabling the single workflow immediately disables all pre-merge tests.
  • Disabling or adding a pre-merge test is achieved by altering the matrices distro list.
    • I.E. Changing distro: [ubuntu, rockylinux, debian] to distro: [ubuntu, rockylinux] disables the diabian pre-merge tests.

Which issue it fixes?

No issue.

How has this been tested?

Testing within forked PR:

Notes

Since the current premerge debian is manually disabled, this PR has removed debian from the matrix distro list.

@TrevorBenson TrevorBenson requested review from Scitz0 and rdlrt September 2, 2023 23:22
@TrevorBenson TrevorBenson force-pushed the matrix-based-premerge-tests branch from b0b777b to b71eaa3 Compare September 3, 2023 01:27
@TrevorBenson TrevorBenson enabled auto-merge (squash) September 3, 2023 01:32
@TrevorBenson TrevorBenson merged commit 79282b9 into alpha Sep 3, 2023
@TrevorBenson TrevorBenson deleted the matrix-based-premerge-tests branch September 3, 2023 01:47
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.

2 participants