2020-04-04 13:49:46 +03:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions/setup-haskell@v1
|
|
|
|
|
2020-04-04 18:59:02 +03:00
|
|
|
- run: echo ::set-env name=GITHUB_SHA::$GITHUB_SHA
|
|
|
|
shell: bash
|
|
|
|
|
2020-04-04 13:49:46 +03:00
|
|
|
- uses: actions/cache@v1
|
|
|
|
name: Cache ~/.stack
|
|
|
|
with:
|
|
|
|
path: ~/.stack
|
2020-04-04 18:59:02 +03:00
|
|
|
key: ${{ runner.os }}-stack-${{ env.GITHUB_SHA }}
|
|
|
|
restore-keys: ${{ runner.os }}-stack-
|
2020-04-04 13:49:46 +03:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: stack build
|
|
|
|
|
2020-04-06 13:27:09 +03:00
|
|
|
- name: Run Compiler Tests
|
|
|
|
run: stack test
|
|
|
|
|
2020-04-04 13:49:46 +03:00
|
|
|
- name: Run Carp Tests
|
|
|
|
run: ./run_carp_tests.sh --no_sdl
|