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

Generate test matrix from tested-with GHCs #308

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Generate test matrix from tested-with GHCs #308

merged 1 commit into from
Apr 12, 2024

Conversation

Kleidukos
Copy link
Collaborator

@Kleidukos Kleidukos commented Jan 4, 2024

This PR updates the CI setup a bit:

  • The tested-with stanza of the cabal file is updated to reflect a canonical list of GHC versions that are being actively tested.

  • This list is used to generate a CI matrix.

  • Supported base version is set to 4.14 / GHC 8.10.7, which makes some conditionals like if (impl(ghc >= 8.6)) redundant.

  • A dependabot config has been setup to offer PR to update the github actions used.

@Kleidukos
Copy link
Collaborator Author

@robrix yo! may I ask for a review?

@Kleidukos Kleidukos requested review from tclem and rewinfrey February 7, 2024 17:01
@Kleidukos
Copy link
Collaborator Author

@BekaValentine hi! How can we get this PR moving forward?

Comment on lines +20 to +25
- name: Extract the tested GHC versions
id: set-matrix
run: |
wget https://github.com/Kleidukos/get-tested/releases/download/v0.1.5.0/get-tested-0.1.5.0-linux-amd64 -O get-tested
chmod +x get-tested
./get-tested --ubuntu tree-sitter/tree-sitter.cabal >> $GITHUB_OUTPUT
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey this is cool

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually in the meantime it gained a GitHub Action. I'll send a follow-up PR. :)

Comment on lines +42 to +45
-Wno-star-is-type
-Wno-missing-deriving-strategies
-Wno-missing-safe-haskell-mode
-Wno-prepositive-qualified-module
Copy link
Contributor

Choose a reason for hiding this comment

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

Good call dropping the conditionals.

@robrix robrix merged commit d3aa158 into master Apr 12, 2024
5 checks passed
@robrix robrix deleted the update-ci branch April 12, 2024 19:38
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