Move sanity checks to lint ci.

This commit is contained in:
John MacFarlane 2020-12-18 09:55:34 -08:00
parent b7d7c45562
commit 2bcb063df8
2 changed files with 12 additions and 9 deletions

View file

@ -58,9 +58,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Basic sanity checks
run: make check
# need to install older cabal/ghc versions from ppa repository
- name: Install recent cabal/ghc
@ -107,9 +104,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Basic sanity checks
run: make check
# We should have ghc 8.10, cabal, stack pre-installed
# - uses: actions/setup-haskell@v1.1.3
# with:
@ -159,9 +153,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Basic sanity checks
run: make check
- name: Install recent cabal/ghc
uses: actions/setup-haskell@v1.1.3
with:

View file

@ -25,6 +25,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Check documentation for tabs
run: |
! grep -q -n -e "\t" MANUAL.txt changelog.md
- name: Check cabal file for missing test files
run: |
cabal sdist --list-only | sed 's/\.\///' | grep '^test\/' | \
sort > sdist-test-files.txt
git ls-tree -r --name-only HEAD | grep '^test\/' | \
sort > git-test-files.txt
diff -u git-test-files.txt sdist-test-files.txt
- name: Download and run hlint
run: |
curl -sSL "${hlint_script}" | sh -s .