Skip to content

update to latest spago #38

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,34 @@ on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: purescript-contrib/setup-purescript@main
- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"
purescript: "latest"
purs-tidy: "latest"
spago: "unstable"

- uses: actions/setup-node@v2
- name: Cache PureScript dependencies
uses: actions/cache@v4
with:
node-version: "14"

- name: Install dependencies
run: |
npm install -g bower
npm install
bower install --production
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
path: |
.spago
output

- name: Build source
run: npm run-script build
run: spago build --censor-stats --strict --ensure-ranges --pedantic-packages

# - name: Run tests
# run: spago test --offline --censor-stats --strict --pedantic-packages

- name: Run tests
run: |
bower install
npm run-script test --if-present
- name: Verify formatting
run: purs-tidy check src
24 changes: 0 additions & 24 deletions bower.json

This file was deleted.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"private": true,
"scripts": {
"clean": "rimraf output && rimraf .pulp-cache",
"build": "pulp build -- --censor-lib --strict"
"clean": "rimraf output && rimraf .spago",
"build": "spago build --strict --pedantic-packages --ensure-ranges"
},
"devDependencies": {
"pulp": "^16.0.0-0",
"purescript-psa": "^0.8.2",
"rimraf": "^3.0.2"
"rimraf": "^6.0.1"
}
}
Loading