Skip to content

Conversation

@anttih
Copy link

@anttih anttih commented Sep 23, 2023

Adds a CI configuration that runs the test suite using the npm package purescm.

@anttih
Copy link
Author

anttih commented Sep 23, 2023

@f-f any idea what's up with the build?

@f-f
Copy link

f-f commented Sep 23, 2023

@anttih the CI is not happy because it's trying to feed to the compiler JS modules that are not ES modules, and the compiler rejects those. I believe this is because we have based this implementation on the previous major version of the library (5.x), and we should rebase all of our commits on the latest commit from upstream.

sudo apt install chezscheme
- name: Setup PureScript dependencies
run: npm i --global purescript@0.15.10 purs-tidy@latest spago@next purescript-psa@latest purescm@next
Copy link

Choose a reason for hiding this comment

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

Spago includes PSA now:

Suggested change
run: npm i --global purescript@0.15.10 purs-tidy@latest spago@next purescript-psa@latest purescm@next
run: npm i --global purescript@0.15.10 purs-tidy@latest spago@next purescm@next

package.json Outdated
"build": "eslint src && pulp build -- --censor-lib --strict",
"test": "pulp test"
"build": "spago build",
"test": "spago build && purescm bundle-app --main Test.Main && scheme --program output/main"
Copy link

Choose a reason for hiding this comment

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

Just a thought: we might want to add a test command to purescm, that does the bundle-app + call to scheme

package.json Outdated
"purescript-psa": "^0.8.0",
"pulp": "^15.0.0",
"rimraf": "^3.0.2"
"purescm": "1.0.0"
Copy link

Choose a reason for hiding this comment

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

I don't think we need this line if we are relying on a global install

@anttih anttih marked this pull request as ready for review September 23, 2023 19:38
@anttih anttih requested a review from f-f September 30, 2023 17:23
@anttih anttih merged commit d5e517b into purescm:v6.0.1-scm Sep 30, 2023
@anttih anttih deleted the purescm-ci branch September 30, 2023 17:30
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