Skip to content
Merged
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
31 changes: 15 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
runs-on: ubuntu-latest

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

- uses: actions/setup-node@v7
with:
node-version: 24

- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main
Expand All @@ -20,30 +24,25 @@ jobs:
purs-tidy: "latest"

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

- name: Install dependencies
run: spago install
run: |
npm install
npx spago install

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

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

- name: Bundle browser tests
run: npm run test:browser

- name: Check 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ New features:
Bugfixes:

Other improvements:
- Migrate to registry-backed Spago, preserving published dependency ranges, and update repository tooling and CI actions.

## [v11.0.0](https://github.com/purescript-contrib/purescript-routing/releases/tag/v11.0.0) - 2022-04-27

Expand Down
49 changes: 0 additions & 49 deletions bower.json

This file was deleted.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"private": true,
"scripts": {
"test:browser": "spago bundle-app -m Test.Browser --to test/dist/bundle.js",
"test:browser": "spago build && esbuild output/Test.Browser/index.js --bundle --platform=browser --format=iife --global-name=RoutingTests --footer:js='RoutingTests.main();' --outfile=test/dist/bundle.js",
"test:serve": "static test"
},
"devDependencies": {
"esbuild": "^0.28.2",
"spago": "^1.0.4",
"node-static": "^0.7.11"
}
}
4 changes: 0 additions & 4 deletions packages.dhall

This file was deleted.

34 changes: 0 additions & 34 deletions spago.dhall

This file was deleted.

Loading
Loading