git.iko.soy/rowtype-yoga/purescript-arraybuffer-builder
on master help sign in
46 lines 1.1 kB history raw
1name: CI
3on:
4 push:
5 pull_request:
7jobs:
8 build:
9 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v2
14 - name: Set up a PureScript toolchain
15 uses: purescript-contrib/setup-purescript@main
16 with:
17 purescript: "unstable"
18 purs-tidy: "latest"
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
30 - name: Build source
31 run: spago build --no-install --purs-args '--censor-lib --strict --censor-codes='UserDefinedWarning''
33 - name: Install dev dependencies
34 run: spago -x spago-dev.dhall install
36 - name: Run tests
37 run: spago -x spago-dev.dhall test --no-install
39 - name: Check formatting
40 run: purs-tidy check src test bench
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