Move sanity checks to lint ci.
This commit is contained in:
parent
b7d7c45562
commit
2bcb063df8
2 changed files with 12 additions and 9 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -58,9 +58,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Basic sanity checks
|
|
||||||
run: make check
|
|
||||||
|
|
||||||
# need to install older cabal/ghc versions from ppa repository
|
# need to install older cabal/ghc versions from ppa repository
|
||||||
|
|
||||||
- name: Install recent cabal/ghc
|
- name: Install recent cabal/ghc
|
||||||
|
@ -107,9 +104,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Basic sanity checks
|
|
||||||
run: make check
|
|
||||||
|
|
||||||
# We should have ghc 8.10, cabal, stack pre-installed
|
# We should have ghc 8.10, cabal, stack pre-installed
|
||||||
# - uses: actions/setup-haskell@v1.1.3
|
# - uses: actions/setup-haskell@v1.1.3
|
||||||
# with:
|
# with:
|
||||||
|
@ -159,9 +153,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Basic sanity checks
|
|
||||||
run: make check
|
|
||||||
|
|
||||||
- name: Install recent cabal/ghc
|
- name: Install recent cabal/ghc
|
||||||
uses: actions/setup-haskell@v1.1.3
|
uses: actions/setup-haskell@v1.1.3
|
||||||
with:
|
with:
|
||||||
|
|
12
.github/workflows/lint.yml
vendored
12
.github/workflows/lint.yml
vendored
|
@ -25,6 +25,18 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
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
|
- name: Download and run hlint
|
||||||
run: |
|
run: |
|
||||||
curl -sSL "${hlint_script}" | sh -s .
|
curl -sSL "${hlint_script}" | sh -s .
|
||||||
|
|
Loading…
Reference in a new issue