Skip to content

Conversation

@JordanMartinez
Copy link
Contributor

This updates the CI for the prepare-0.14 branch to test whether the packages listed in src/spago.dhall compile using the current release candidate of PureScript v0.14.0

I'm not familiar with GitHub Actions yet, so I'm not sure whether this will work the first time. I also am not using Nix because I don't know how to configure it to use the release candidate.

@JordanMartinez
Copy link
Contributor Author

JordanMartinez commented Oct 1, 2020

Alright. The CI for this branch now compiles packages listed in the src/spago.dhall file's dependency list properly now. prelude doesn't compile because purescript/purescript-prelude#227 hasn't yet been merged into master.

One thing that would make this better is if CI failed when any warnings are emitted. Unfortunately, I'm not sure how that would be done.

@JordanMartinez
Copy link
Contributor Author

To make this build fail when warnings are emitted, I'll need to use Harry's compatibility update for purescript-psa.

Copy link
Member

@f-f f-f left a comment

Choose a reason for hiding this comment

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

Looks great! 👏

I saw your thread on the Slack about having --strict fail the build if there are warnings in the dependencies. Something that could work for our usecase would be to have two Spago configs:

  • one with the packages as dependencies and that we'd only use to call spago install, so that we'd get the dependencies downloaded in the .spago folder
  • once we do that we could move all the package sources to src (so that psa would fail on warnings)
  • and then compile with spago build -u "--strict" with another spago config with no dependencies

Would this work?

@JordanMartinez
Copy link
Contributor Author

@f-f Thanks so much for the idea! Yes, it does work. I got so annoyed at this yesterday that I stopped working on it yesterday.

The latest commit verifies that CI will fail when we compile packages that still have compiler warnings. I'll update prelude back to master after I make this comment, and then I'll merge it in.

If we forget to override the `metadata.version` field, CI will fail. 
Rather than doing this in two separate places for updatedLibs.dhall and 
usePsa.dhall, we do it once in shared.dhall.
@JordanMartinez JordanMartinez merged commit 487c56f into purescript:prepare-0.14 Oct 2, 2020
@JordanMartinez JordanMartinez deleted the updateCI branch October 2, 2020 19:48
@JordanMartinez JordanMartinez restored the updateCI branch October 3, 2020 21:28
@JordanMartinez JordanMartinez deleted the updateCI branch October 13, 2020 12:29
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