Skip to content

Commit

Permalink
Update CI for spago
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMartinez committed Jun 8, 2023
1 parent a916bd9 commit 6dbb337
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions 03-Build-Tools/04-Continuous-Integration.md
Expand Up @@ -74,35 +74,19 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- uses: purescript-contrib/setup-purescript@main
with:
purescript: "0.15.7"
purs-tidy: "0.9.2"
psa: "0.8.2"
spago: "0.20.9"
psa: "0.7.2"

- name: Cache PureScript dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
path: |
.spago
output
- uses: actions/checkout@v3

- name: Set up Node toolchain
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "16"

- name: Cache NPM dependencies
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand All @@ -113,9 +97,21 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Setup PureScript tooling
run:
npm i -g purescript@latest purs-tidy@latest purescript-psa@latest spago@latest

- name: Install NPM dependencies
run: npm install

- name: Cache PureScript dependencies
uses: actions/cache@v3
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
path: |
.spago
output
# Compile the library/project
# censor-lib: ignore warnings emitted by dependencies
# strict: convert warnings into errors
Expand All @@ -129,6 +125,7 @@ jobs:
spago test
- name: Check Formatting
if: runner.os == 'Linux'
run: |
purs-tidy check src test
```

0 comments on commit 6dbb337

Please sign in to comment.