Skip to content

Commit 8960467

Browse files
committed
Split dev dependencies into spago-dev.dhall
1 parent 6f4d1ee commit 8960467

File tree

4 files changed

+36
-8
lines changed

4 files changed

+36
-8
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
output
2626
2727
- name: Install dependencies
28-
run: spago install
28+
run: spago -x spago-dev.dhall install
2929

3030
- name: Build source
31-
run: spago build --no-install --purs-args '--censor-lib --strict --censor-codes='UserDefinedWarning''
31+
run: spago -x spago-dev.dhall build --no-install --purs-args '--censor-lib --strict --censor-codes='UserDefinedWarning''
3232

3333
- name: Run tests
34-
run: spago test --no-install
34+
run: spago -x spago-dev.dhall test --no-install

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,16 @@
33
Thanks for your interest in contributing to `parsing`! We welcome new contributions regardless of your level of experience or familiarity with PureScript.
44

55
Every library in the Contributors organization shares a simple handbook that helps new contributors get started. With that in mind, please [read the short contributing guide on purescript-contrib/governance](https://github.com/purescript-contrib/governance/blob/main/contributing.md) before contributing to this library.
6+
7+
# Development
8+
9+
This package includes a `spago-dev.dhall` which provides the dependencies
10+
for development and testing.
11+
12+
## Testing
13+
14+
To run the test suite:
15+
16+
```
17+
spago -x spago-dev.dhall test
18+
```

spago-dev.dhall

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
-- Spago configuration for testing, development.
2+
--
3+
-- See:
4+
-- * ./CONTRIBUTING.md
5+
-- * https://github.com/purescript/spago#devdependencies-testdependencies-or-in-general-a-situation-with-many-configurations
6+
--
7+
8+
let conf = ./spago.dhall
9+
10+
in conf //
11+
{ sources = [ "src/**/*.purs", "test/**/*.purs" ]
12+
, dependencies = conf.dependencies #
13+
[ "assert"
14+
, "console"
15+
, "effect"
16+
, "psci-support"
17+
]
18+
, packages = ./packages.dhall
19+
}

spago.dhall

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{ name = "parsing"
22
, dependencies =
33
[ "arrays"
4-
, "assert"
5-
, "console"
64
, "control"
7-
, "effect"
85
, "either"
96
, "foldable-traversable"
107
, "identity"
@@ -14,13 +11,12 @@
1411
, "maybe"
1512
, "newtype"
1613
, "prelude"
17-
, "psci-support"
1814
, "strings"
1915
, "tailrec"
2016
, "transformers"
2117
, "tuples"
2218
, "unicode"
2319
]
2420
, packages = ./packages.dhall
25-
, sources = [ "src/**/*.purs", "test/**/*.purs" ]
21+
, sources = [ "src/**/*.purs" ]
2622
}

0 commit comments

Comments
 (0)