Skip to content

Add GitHub Actions Workflow #1

Add GitHub Actions Workflow

Add GitHub Actions Workflow #1

Workflow file for this run

on: [push, pull_request]
name: build and test
jobs:
build-and-test:
name: build and test
runs-on: ubuntu-latest
strategy:
matrix:
purs: ['0.15.0', '0.15.2', '0.15.3', '0.15.4', '0.15.5', '0.15.6', '0.15.7', '0.15.8', '0.15.9']
steps:
- uses: actions/checkout@v3
- name: Install Stack
run: curl -sSL https://get.haskellstack.org/ | sh
- name: Build
run: stack install --stack-yaml=stack-purs${{ matrix.purs }}.yaml purescript purs-tsd-gen
- name: Doctest
run: stack test --stack-yaml=stack-purs${{ matrix.purs }}.yaml
- uses: actions/cache@v3
with:
path: ~/.stack
key: ${{ matrix.purs }}