- Add a new
working-directory
argument that allows you to change the working directory thatfourmolu
is run from. #29
- Upgrade
run-formolu
to work with Node 20 instead of Node 16. Also upgrade the versions of various dependent JS libraries. #25
-
run-fourmolu
Action now takes aversion
argument to allow you to specify the version of Fourmolu you want to use. If you don't specify theversion
argument, then the latest version of Fourmolu will be used. Note that this is a breaking change for all current users ofrun-fourmolu
.With this change, you're now able to use a single version of
run-fourmolu
with different versions of Fourmolu.Here's an example of how you'd use
run-fourmolu
with the 0.12.0.0 version of Fourmolu:- uses: haskell-actions/run-fourmolu@v9 with: version: "0.12.0.0"
It is recommended to always specify the version of Fourmolu you want to use, since Fourmolu is often not backwards compatible. New releases of Fourmolu could possibly break your CI. However, if you want to always use the newest release of fourmolu, you can do it like the following:
- uses: haskell-actions/run-fourmolu@v9 with: version: "latest"
Alternatively, you can leave out the
version
argument and it will default tolatest
.
- Uses Fourmolu 0.12.0.0
- Uses Fourmolu 0.11.0.0
- Uses Fourmolu 0.10.1.0
- Uses Fourmolu 0.9.0.0.
- Uses Fourmolu 0.8.2.0.
- Uses Fourmolu 0.8.0.0.
- Uses Fourmolu 0.7.0.1.
- Uses Fourmolu 0.6.0.0.