fix for subtraction - final code cleanup #20
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
name: Haskell CI/CD | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Haskell Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Haskell | |
uses: actions/setup-haskell@v1 | |
with: | |
ghc-version: 8.10 | |
stack-version: 2.7 | |
- name: Install HLint | |
run: stack install hlint | |
- name: Run HLint | |
run: stack exec hlint src/*.hs app/*.hs test/*.hs | |
test: | |
name: Stack Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Haskell | |
uses: actions/setup-haskell@v1 | |
with: | |
ghc-version: 8.10 | |
stack-version: 2.7 | |
- name: Stack Setup | |
run: stack setup | |
- name: Stack Build and Test | |
run: stack test |