Skip to content

Commit

Permalink
Add ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMartinez committed Feb 15, 2022
1 parent e70bb1f commit 0fe25d4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches: [master]
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: purescript-contrib/setup-purescript@main
- uses: actions/setup-node@v1
with:
node-version: "12"
- uses: actions/cache@v2
# This cache uses the .dhall files to know when it should reinstall
# and rebuild packages. It caches both the installed packages from
# the `.spago` directory and compilation artifacts from the `output`
# directory. When restored the compiler will rebuild any files that
# have changed.
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
path: |
.spago
output
- name: Install dependencies
run: npm install

- name: Build source
run: npm run build

- name: Build bin
run: npm run bundle

- name: Verify formatting
run: purs-tidy check src bin

0 comments on commit 0fe25d4

Please sign in to comment.