git.iko.soy/rowtype-yoga/purescript-unique
on master help sign in
CI workflow / purs-tidy
commitc6d44ec2ca1357289c3fca988fd83a23a08abe5f authorNick Saunders <nick@saunde.rs> dateMon 6 Mar 2023, 18:05 (4 years ago) parentfebb07b
2 files changed+66
.github/workflows/ci.yml+56 .tidyrc.json+10
.github/workflows/ci.ymlnew file+56
@@ -0,0 +1,56 @@
1+name: CI
2+
3+on:
4+ push:
5+ branches: [master]
6+ paths:
7+ - 'src/**/*.purs'
8+ - 'src/**/*.js'
9+ - 'test/**/*.purs'
10+ - 'test/**/*.js'
11+ - '*.dhall'
12+ - '*.json'
13+ - '.github/workflows/ci.yml'
14+ pull_request:
15+ branches: [master]
16+ paths:
17+ - 'src/**/*.purs'
18+ - 'src/**/*.js'
19+ - 'test/**/*.purs'
20+ - 'test/**/*.js'
21+ - '*.dhall'
22+ - '*.json'
23+ - '.github/workflows/ci.yml'
24+
25+jobs:
26+ build:
27+ runs-on: ubuntu-latest
28+
29+ steps:
30+ - uses: actions/checkout@v3
31+
32+ - uses: purescript-contrib/setup-purescript@main
33+ with:
34+ purescript: "unstable"
35+ purs-tidy: "latest"
36+
37+ - uses: actions/cache@v2
38+ with:
39+ key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
40+ path: |
41+ .spago
42+ output
43+
44+ - run: spago install
45+
46+ - run: spago build --no-install --purs-args '--censor-lib --strict'
47+
48+ - run: spago -x test.dhall test
49+
50+ - run: purs-tidy check src test
51+
52+ - name: Verify Bower & Pulp
53+ run: |
54+ npm install bower pulp@16.0.0-0
55+ npx bower install
56+ npx pulp build -- --censor-lib --strict
.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+}