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

Update CI to install Smoke, Github actions, and Makefile fixes #1735

Merged
merged 21 commits into from
Jan 24, 2023

Conversation

jonaprieto
Copy link
Collaborator

@jonaprieto jonaprieto commented Jan 17, 2023

This PR adds some maintenance at different levels to the CI config, the Make file, and formatting.

  • Most of the actions used by the CI related to haskell, ormolu, hlint and pre-commit have been updated because Github requires NodeJS 16. This change removes all the old warnings related to nodeJs.
    In the case of ormolu, the new version makes us format some files that were not formatted before, similarly with hlint.

  • The CI has been updated to use the latest version of the Smoke testing framework, which introduced installation of the dependencies for Linux (libicu66) and macOS (icu4c) in the CI. In the case of macOS, the CI uses a binary for smoke. For Linux, we use stack to build smoke from the source. The source here is in a fork of the official Smoke repo. Such includes some features/changes that are not yet in the official repo.

  • The Makefile runs the ormolu and hlint targets using as a path for the binaries the environment variables ORMOLU and HLINT. Thus, export those variables in your environment before running make check, make format or make hlint. Otherwise, the Makefile will use the binaries provided
    by stack.

@jonaprieto jonaprieto added this to the 0.2.9 milestone Jan 17, 2023
@jonaprieto jonaprieto self-assigned this Jan 17, 2023
paulcadman
paulcadman previously approved these changes Jan 17, 2023
@jonaprieto jonaprieto changed the title Use Smoke fork Update CI to install Smoke, Github actions, and Makefile fixes Jan 23, 2023
@paulcadman
Copy link
Collaborator

We should document / communicate which versions of hlint and ormolu are now being used by the CI so we can make sure we have the correct versions installed locally. The documentation can be done in a separate PR.

paulcadman
paulcadman previously approved these changes Jan 24, 2023
Copy link
Collaborator

@paulcadman paulcadman left a comment

Choose a reason for hiding this comment

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

A Herculean labour, good job!

@jonaprieto jonaprieto merged commit 807b3b1 into main Jan 24, 2023
@jonaprieto jonaprieto deleted the smoke-fork branch January 24, 2023 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants