Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
postsolar committed Oct 11, 2023
1 parent 1963a1d commit 0d92dbe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 2 additions & 8 deletions package.json
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"
}
}

0 comments on commit 0d92dbe

Please sign in to comment.