From 8b7ca742b6caf9d023a6a1eed78ffeb706bdc10f Mon Sep 17 00:00:00 2001 From: Jon Schoning Date: Wed, 29 Sep 2021 12:04:50 -0500 Subject: [PATCH] Setup actions --- .github/workflows/tests.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..07d44e3 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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 }}