Skip to content
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

feat: migrate to spago@next #148

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
30 changes: 9 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,29 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

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

- name: Cache PureScript dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
path: |
.spago
output

- name: Install dependencies
run: spago install

- name: Build source
run: spago build --no-install --purs-args '--censor-lib --strict'
run: spago build --censor-stats --strict --pedantic-packages

- name: Run tests
run: spago test --no-install

- name: Check formatting
run: purs-tidy check src test examples
run: spago test --offline --censor-stats --strict --pedantic-packages -- --censor-codes=UserDefinedWarning

- name: Verify Bower & Pulp
run: |
npm install bower [email protected]
npx bower install
npx pulp build
if [ -d "test" ]; then
npx pulp test
fi
- name: Verify formatting
run: purs-tidy check src test
27 changes: 0 additions & 27 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,5 @@
"repository": {
srghma marked this conversation as resolved.
Show resolved Hide resolved
"type": "git",
"url": "https://github.com/purescript-contrib/purescript-profunctor-lenses.git"
},
"dependencies": {
"purescript-arrays": "^7.0.0",
"purescript-bifunctors": "^6.0.0",
"purescript-const": "^6.0.0",
"purescript-control": "^6.0.0",
"purescript-distributive": "^6.0.0",
"purescript-either": "^6.0.0",
"purescript-foldable-traversable": "^6.0.0",
"purescript-foreign-object": "^4.0.0",
"purescript-functors": "^5.0.0",
"purescript-identity": "^6.0.0",
"purescript-lists": "^7.0.0",
"purescript-maybe": "^6.0.0",
"purescript-newtype": "^5.0.0",
"purescript-ordered-collections": "^3.0.0",
"purescript-partial": "^4.0.0",
"purescript-prelude": "^6.0.0",
"purescript-profunctor": "^6.0.0",
"purescript-record": "^4.0.0",
"purescript-transformers": "^6.0.0",
"purescript-tuples": "^7.0.0"
},
"devDependencies": {
"purescript-console": "^6.0.0",
"purescript-effect": "^4.0.0",
"purescript-assert": "^6.0.0"
}
}
6 changes: 6 additions & 0 deletions package-lock.json
srghma marked this conversation as resolved.
Show resolved Hide resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions packages.dhall

This file was deleted.

30 changes: 0 additions & 30 deletions spago.dhall

This file was deleted.

Loading