Improve check target to test data/ too.
This commit is contained in:
parent
6abe406aea
commit
757dbc637b
2 changed files with 7 additions and 12 deletions
7
.github/workflows/lint.yml
vendored
7
.github/workflows/lint.yml
vendored
|
@ -26,12 +26,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Check cabal file for missing test files
|
- name: Check cabal file for missing test files
|
||||||
run: |
|
run: make check-cabal
|
||||||
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: |
|
||||||
|
|
12
Makefile
12
Makefile
|
@ -114,14 +114,14 @@ update-website:
|
||||||
clean:
|
clean:
|
||||||
stack clean
|
stack clean
|
||||||
|
|
||||||
check-cabal: git-test-files.txt sdist-test-files.txt
|
check-cabal: git-files.txt sdist-files.txt
|
||||||
echo "Checking to see if all committed test files are in sdist..."
|
echo "Checking to see if all committed test/data files are in sdist."
|
||||||
diff -u $^
|
diff -u $^
|
||||||
|
|
||||||
sdist-test-files.txt: .FORCE
|
sdist-files.txt: .FORCE
|
||||||
cabal sdist --list-only | sed 's/\.\///' | grep '^test\/' | sort > $@
|
cabal sdist --list-only | sed 's/\.\///' | grep '^\(test\|data\)\/' | sort > $@
|
||||||
|
|
||||||
git-test-files.txt: .FORCE
|
git-files.txt: .FORCE
|
||||||
git ls-tree -r --name-only HEAD | grep '^test\/' | sort > $@
|
git ls-tree -r --name-only HEAD | grep '^\(test\|data\)\/' | sort > $@
|
||||||
|
|
||||||
.PHONY: .FORCE deps quick full haddock install clean test bench changes_github dist prof download_stats reformat lint weigh doc/lua-filters.md pandoc-templates trypandoc update-website debpkg checkdocs ghcid ghci fix_spacing hlint check check-cabal
|
.PHONY: .FORCE deps quick full haddock install clean test bench changes_github dist prof download_stats reformat lint weigh doc/lua-filters.md pandoc-templates trypandoc update-website debpkg checkdocs ghcid ghci fix_spacing hlint check check-cabal
|
||||||
|
|
Loading…
Add table
Reference in a new issue