-
Notifications
You must be signed in to change notification settings - Fork 0
Add initial CI config #3
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
Conversation
|
@f-f any idea what's up with the build? |
|
@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. |
.github/workflows/ci.yml
Outdated
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spago includes PSA now:
| 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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
Adds a CI configuration that runs the test suite using the npm package
purescm.