Merge pull request #29 from jonschoning/actions

setup actions
This commit is contained in:
Jon Schoning 2021-09-29 13:04:51 -05:00 committed by GitHub
commit 9e53a09304
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

36
.github/workflows/tests.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Tests
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
name: CI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
#-macos-latest
#-windows-latest
resolver:
#- nightly
- lts-18.7
steps:
- name: Clone project
uses: actions/checkout@v2
- name: Build and run tests
shell: bash
run: |
set -ex
mkdir -p ../_newstack
stack upgrade --force-download --local-bin-path ../_newstack
../_newstack/stack --version
../_newstack/stack test --fast --no-terminal --resolver=${{ matrix.resolver }}