update CI #157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# thanks to https://github.com/rolandtritsch/haskell-aoc-2020 | |
on: [push] | |
name: CI | |
jobs: | |
build: | |
name: Build and run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
key: stack | |
path: | | |
~/.stack | |
~/.stack-work | |
- uses: actions/checkout@v4 | |
- name: Compile all tests | |
run: stack --system-ghc test --no-run-tests | |
- name: "Run tests: propositional" | |
run: stack --system-ghc test :propositional | |
- name: "Run tests: basicmodal" | |
run: stack --system-ghc test :basicmodal | |
- name: "Run tests: pdl" | |
run: stack --system-ghc test :pdl | |
- name: "Run example" | |
run: stack --system-ghc exec example | |
build-web: | |
name: Buld web interface | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
key: stack | |
path: | | |
~/.stack | |
~/.stack-work | |
- uses: actions/checkout@v4 | |
- name: Compile web interface | |
run: stack --system-ghc build Logic:exe:tapdleau |