git.iko.soy/rowtype-yoga/purescript-vault
on master help sign in
Introduce purs-tidy.
commit3a8c299bf726bde75494b6fe28642c66d82e7182 authorNick Saunders <nick@saunde.rs> dateThu 9 Mar 2023, 17:50 (4 years ago) parent704225a
2 files changed+29
.github/workflows/ci.yml+19 .tidyrc.json+10
.github/workflows/ci.yml+19
@@ -15,6 +15,16 @@ jobs:
1515
1616 - name: Set up a PureScript toolchain
1717 uses: purescript-contrib/setup-purescript@main
18+ with:
19+ bower: "latest"
20+ purescript: "latest"
21+ psa: "latest"
22+ pulp: "latest"
23+ spago: "latest"
24+ purs-tidy: "latest"
25+
26+ - name: Check formatting
27+ run: purs-tidy check src test
1828
1929 - name: Cache PureScript dependencies
2030 uses: actions/cache@v2
@@ -32,3 +42,12 @@ jobs:
3242
3343 - name: Run tests
3444 run: spago -x test.dhall test
45+
46+ - name: Verify Bower & Pulp
47+ run: |
48+ npm install bower pulp@16.0.0-0
49+ npx bower install
50+ npx pulp build -- --censor-lib --strict
51+ if [ -d "test" ]; then
52+ npx pulp test
53+ fi
.tidyrc.jsonnew file+10
@@ -0,0 +1,10 @@
1+{
2+ "importSort": "source",
3+ "importWrap": "source",
4+ "indent": 2,
5+ "operatorsFile": null,
6+ "ribbon": 1,
7+ "typeArrowPlacement": "first",
8+ "unicode": "never",
9+ "width": null
10+}