forked from purescript/purescript-enums
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,32 +4,35 @@ on: | |
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: purescript-contrib/setup-purescript@main | ||
with: | ||
purescript: "unstable" | ||
|
||
- uses: actions/setup-node@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14.x" | ||
node-version: "18" | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm install -g bower | ||
npm install | ||
bower install --production | ||
sudo apt install chezscheme | ||
- name: Setup PureScript dependencies | ||
run: npm i --global [email protected] spago@next purescm@next | ||
|
||
- name: Build source | ||
run: npm run-script build | ||
run: npm run build | ||
|
||
- name: Cache PureScript dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.yaml') }} | ||
path: | | ||
.spago | ||
output | ||
- name: Run tests | ||
run: | | ||
bower install | ||
npm run-script test --if-present | ||
npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"clean": "rimraf output && rimraf .pulp-cache", | ||
"build": "pulp build -- --censor-lib --strict", | ||
"test": "pulp test" | ||
}, | ||
"devDependencies": { | ||
"pulp": "16.0.0-0", | ||
"purescript-psa": "^0.8.2", | ||
"rimraf": "^3.0.2" | ||
"build": "spago build", | ||
"test": "spago build && purescm run --main Test.Main" | ||
} | ||
} |