Kleidukos / get-tested

Go get tested! Github Actions matrix generator for your haskell projects' CI
BSD 3-Clause "New" or "Revised" License
45 stars 3 forks source link

Enable the caller to select the newest or oldest-supported GHC #53

Closed Kleidukos closed 2 months ago

Kleidukos commented 2 months ago

With the following stanza: tested-with: GHC ==9.10.1 || ==9.6.6 || ==8.10.7

❯ cabal run -- get-tested --ubuntu-version=latest *.cabal
matrix={"include":[{"ghc":"9.10.1","os":"ubuntu-latest"},{"ghc":"9.6.6","os":"ubuntu-latest"},{"ghc":"8.10.7","os":"ubuntu-latest"}]}

❯ cabal run -- get-tested --newest --ubuntu-version=latest *.cabal
matrix={"include":[{"ghc":"9.10.1","os":"ubuntu-latest"}]}

❯ cabal run -- get-tested --oldest --ubuntu-version=latest *.cabal
matrix={"include":[{"ghc":"8.10.7","os":"ubuntu-latest"}]}

cc @mmhat

relates to #52

Kleidukos commented 2 months ago

@mmhat I have made the options mutually incompatible. Anything else you'd like to ask for?

mmhat commented 2 months ago

@mmhat I have made the options mutually incompatible. Anything else you'd like to ask for?

No, LGTM :slightly_smiling_face: