git.iko.soy/rowtype-yoga/purescript-arraybuffer-builder
on master help sign in
CI repair. Change `test.dhall` to `spago-dev.dhall`.
9fe8083James Brock
.github/workflows/ci.ymlnew file+49
@@ -0,0 +1,49 @@
1+name: CI
2+
3+on:
4+ push:
5+ pull_request:
6+
7+jobs:
8+ build:
9+ runs-on: ubuntu-latest
10+
11+ steps:
12+ - uses: actions/checkout@v2
13+
14+ - name: Set up a PureScript toolchain
15+ uses: purescript-contrib/setup-purescript@main
16+ with:
17+ purescript: "unstable"
18+ purs-tidy: "latest"
19+
20+ - name: Cache PureScript dependencies
21+ uses: actions/cache@v2
22+ with:
23+ key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}-2
24+ path: |
25+ .spago
26+ output
27+ - name: Install dependencies
28+ run: spago install
29+
30+ - name: Build source
31+ run: spago build --no-install --purs-args '--censor-lib --strict --censor-codes='UserDefinedWarning''
32+
33+ - name: Install dev dependencies
34+ run: spago -x spago-dev.dhall install
35+
36+ - name: Run tests
37+ run: spago -x spago-dev.dhall test --no-install
38+
39+ - name: Check formatting
40+ run: purs-tidy check src test bench
41+
42+ - name: Verify Bower & Pulp
43+ run: |
44+ npm install bower pulp@16.0.0-0
45+ npx bower install
46+ npx pulp build -- --censor-lib --strict
47+ if [ -d "test" ]; then
48+ npx pulp test
49+ fi
.github/workflows/push-build.ymldeleted−42
@@ -1,42 +0,0 @@
1−name: CI
2−
3−on: [push]
4−
5−jobs:
6− build:
7−
8− runs-on: ubuntu-latest
9−
10− # https://github.com/purescript-contrib/setup-purescript
11−
12− steps:
13− # https://github.com/cachix/install-nix-action
14− - uses: actions/checkout@v2.3.4
15− - uses: cachix/install-nix-action@v13
16− with:
17− nix_path: nixpkgs=channel:nixos-unstable
18− - run: nix-shell --command 'spago --global-cache skip --config test.dhall test'
19−
20− # https://github.com/purescript-contrib/setup-purescript
21−
22− # - uses: actions/checkout@v2
23− # - name: Set up a PureScript toolchain
24− # uses: purescript-contrib/setup-purescript@main
25− # with:
26− # purescript: "0.14.1"
27− # spago: "0.20.1"
28−
29−# - name: Cache PureScript dependencies
30−# uses: actions/cache@v2
31−# # This cache uses the .dhall files to know when it should reinstall
32−# # and rebuild packages. It caches both the installed packages from
33−# # the `.spago` directory and compilation artifacts from the `output`
34−# # directory. When restored the compiler will rebuild any files that
35−# # have changed. If you do not want to cache compiled output, remove
36−# # the `output` path.
37−# with:
38−# key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
39−# path: |
40−# .spago
41−
42− # - run: spago -x test.dhall test
CHANGELOG.md+4
@@ -1,5 +1,9 @@
1# Changelog
1# Changelog
2
2
3+## v3.0.1 2022-05-04
4+
5+CI repair. Change `test.dhall` to `spago-dev.dhall`.
6+
3## v3.0.0 2022-05-04
7## v3.0.0 2022-05-04
4
8
5Build for PureScript v0.15.
9Build for PureScript v0.15.
README.md+1−1
@@ -135,5 +135,5 @@ for a way to deserialize from `ArrayBuffer` back to Purescript data.
135To run the tests,
135To run the tests,
136
136
137```shell
137```shell
138−spago -x test.dhall test
138+spago -x spago-dev.dhall test
139```
139```
shell.nixdeleted−30
@@ -1,30 +0,0 @@
1−# Universal shell for PureScript repos
2−# { pkgs ? import <nixpkgs> { }
3−{ pkgs ? import (builtins.fetchGit {
4− # https://github.com/NixOS/nixpkgs/releases/tag/20.09
5− url = "https://github.com/nixos/nixpkgs/";
6− ref = "refs/tags/20.09";
7− rev = "cd63096d6d887d689543a0b97743d28995bc9bc3";
8− }) {}
9−}:
10−let
11− easy-ps = import (builtins.fetchGit {
12− url = "https://github.com/justinwoo/easy-purescript-nix.git";
13− rev = "bbef4245cd6810ea84e97a47c801947bfec9fadc";
14− }) { inherit pkgs; };
15−in
16−pkgs.mkShell {
17− nativeBuildInputs = [
18− easy-ps.purs-0_14_3
19− easy-ps.spago
20− easy-ps.pulp
21− easy-ps.psc-package
22− pkgs.nodejs-14_x
23− pkgs.nodePackages.bower
24− ];
25− LC_ALL = "C.UTF-8"; # https://github.com/purescript/spago/issues/507
26− # https://github.com/purescript/spago#install-autocompletions-for-bash
27− shellHook = ''
28− source <(spago --bash-completion-script `which spago`)
29− '';
30−}
test.dhall → spago-dev.dhallrenamed

The content is the same.