Skip to content

Commit

Permalink
feat: upgrade to spago@next
Browse files Browse the repository at this point in the history
  • Loading branch information
srghma committed Oct 10, 2024
1 parent 50e79f6 commit 2ec58cc
Show file tree
Hide file tree
Showing 7 changed files with 1,305 additions and 88 deletions.
28 changes: 8 additions & 20 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
run: spago test --offline --censor-stats --strict --pedantic-packages -- --censor-codes=UserDefinedWarning

- name: Check formatting
- name: Verify formatting
run: purs-tidy check src test

- name: Verify Bower & Pulp
run: |
npm install bower pulp@16.0.0-0
npx bower install
npx pulp build -- --censor-lib --strict
if [ -d "test" ]; then
npx pulp test
fi
33 changes: 2 additions & 31 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"name": "purescript-argonaut-codecs",
"license": [
"MIT"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/purescript-contrib/purescript-argonaut-codecs.git"
Expand All @@ -12,32 +10,5 @@
"node_modules",
"bower_components",
"output"
],
"dependencies": {
"purescript-argonaut-core": "^7.0.0",
"purescript-arrays": "^7.0.0",
"purescript-bifunctors": "^6.0.0",
"purescript-effect": "^4.0.0",
"purescript-either": "^6.0.0",
"purescript-foldable-traversable": "^6.0.0",
"purescript-foreign-object": "^4.0.0",
"purescript-identity": "^6.0.0",
"purescript-integers": "^6.0.0",
"purescript-lists": "^7.0.0",
"purescript-maybe": "^6.0.0",
"purescript-nonempty": "^7.0.0",
"purescript-ordered-collections": "^3.0.0",
"purescript-prelude": "^6.0.0",
"purescript-record": "^4.0.0",
"purescript-strings": "^6.0.0",
"purescript-tuples": "^7.0.0"
},
"devDependencies": {
"purescript-assert": "^6.0.0",
"purescript-console": "^6.0.0",
"purescript-exceptions": "^6.0.0",
"purescript-gen": "^4.0.0",
"purescript-quickcheck": "^8.0.1",
"purescript-transformers": "^6.0.0"
}
]
}
6 changes: 6 additions & 0 deletions package-lock.json

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

5 changes: 0 additions & 5 deletions packages.dhall

This file was deleted.

32 changes: 0 additions & 32 deletions spago.dhall

This file was deleted.

Loading

0 comments on commit 2ec58cc

Please sign in to comment.