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

Update spago next #46

Open
wants to merge 6 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
60 changes: 39 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,54 @@ name: CI

on:
push:
branches: [master]
branches: [master, main]
pull_request:
branches: [master, main]

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: "latest"
purs-tidy: "latest"
spago: "unstable"

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

- uses: actions/setup-node@v2
- name: Set up Node toolchain
uses: actions/setup-node@v4

- name: Cache NPM dependencies
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
node-version: "14"
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

- name: Install dependencies
- name: Install NPM dependencies
run: npm install

- name: Build source (spago)
run: spago build

- name: Run tests (spago)
run: spago test

- name: Build source (pulp)
run: |
npx bower install --production
npx pulp build

- name: Run tests (pulp)
run: |
npx bower install
npx pulp test
- name: Build source
run: spago build --censor-stats --strict --ensure-ranges --pedantic-packages

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

- name: Verify formatting
run: purs-tidy check src test
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# purescript-bigints

[![Latest release](http://img.shields.io/bower/v/purescript-bigints.svg)](https://github.com/sharkdp/purescript-bigints/releases)
[![Latest release](http://img.shields.io/spago/v/purescript-bigints.svg)](https://github.com/sharkdp/purescript-bigints/releases)
[![Build Status](https://github.com/sharkdp/purescript-bigints/workflows/CI/badge.svg?branch=master)](https://github.com/sharkdp/purescript-bigints/actions?query=workflow%3ACI+branch%3Amaster)
[![Maintainer: gbagan](https://img.shields.io/badge/maintainer-gbagan-teal.svg)](https://github.com/gbagan)

Expand All @@ -10,7 +10,6 @@ A library for calculations with arbitrary length integers.
This is a simple wrapper around [BigInteger.js](https://github.com/peterolson/BigInteger.js)
by [Peter Olson](https://github.com/peterolson).


## Module documentation

- [Published on Pursuit](http://pursuit.purescript.org/packages/purescript-bigints/)
Expand All @@ -33,16 +32,21 @@ true
```

## Installation and usage
You can install this package via Bower. You will also need [BigInteger.js](https://github.com/peterolson/BigInteger.js), which can be installed via `npm`:

You can install this package via spago. You will also need [BigInteger.js](https://github.com/peterolson/BigInteger.js), which can be installed via `npm`:

```
bower install purescript-bigints
spago install purescript-bigints
npm install big-integer
```

For the browser, remember to bundle `BigInteger.min.js` with your code.

## Development

```
bower install
spago install
npm install
```
Then, use `pulp` to build, run tests and generate the documentation.

Then, use `spago` to build, run tests and generate the documentation.
35 changes: 0 additions & 35 deletions bower.json

This file was deleted.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"test": "spago test"
},
"dependencies": {
"big-integer": "^1.6.51"
"big-integer": "^1.6.52"
},
"devDependencies": {
"bower": "^1.8.12",
"pulp": "^16.0.0",
"purescript-psa": "^0.8.2",
"rimraf": "^3.0.2"
"rimraf": "^6.0.1"
},
"type": "module"
}
"type": "module",
"authors": [
"David Peter <[email protected]>"
]
}
5 changes: 0 additions & 5 deletions packages.dhall

This file was deleted.

19 changes: 0 additions & 19 deletions spago.dhall

This file was deleted.

Loading