From 703afcac97d5026dfdfd51308b46d6d56f1c3800 Mon Sep 17 00:00:00 2001 From: Wen Kokke Date: Wed, 1 Sep 2021 19:18:10 +0100 Subject: [PATCH] Created basic GitHub action. --- .github/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/build.yml diff --git a/.github/build.yml b/.github/build.yml new file mode 100644 index 00000000..f6e5ee6a --- /dev/null +++ b/.github/build.yml @@ -0,0 +1,32 @@ +on: [push, pull_request] + +name: Build + +jobs: + build: + runs-on: macOS-latest + strategy: + matrix: + ghc: ['8.10.5'] + steps: + + - name: Setup Haskell + uses: haskell/actions/setup@v1 + with: + ghc-version: ${{ matrix.ghc }} + enable-stack: true + stack-version: 'latest' + + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: true + + - name: Build website + run: make build + + - name: Install HTMLProofer + run: sudo gem install html-proofer + + - name: Test website + run: make test