mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 13:51:19 +00:00
Add CI check for ignored files (#4252)
* Add CI check for ignored files * remove ignored files
This commit is contained in:
parent
f764996745
commit
95130370f0
3 changed files with 8 additions and 0 deletions
|
@ -75,6 +75,14 @@ steps:
|
||||||
- cargo binstall -y cargo-machete
|
- cargo binstall -y cargo-machete
|
||||||
- cargo machete
|
- cargo machete
|
||||||
|
|
||||||
|
ignored_files:
|
||||||
|
group: format
|
||||||
|
image: alpine:3
|
||||||
|
commands:
|
||||||
|
- apk add git
|
||||||
|
- IGNORED=$(git ls-files --cached -i --exclude-standard)
|
||||||
|
- if [[ "$IGNORED" ]]; then echo "Ignored files present:\n$IGNORED\n"; exit 1; fi
|
||||||
|
|
||||||
restore-cache:
|
restore-cache:
|
||||||
image: meltwater/drone-cache:v1
|
image: meltwater/drone-cache:v1
|
||||||
pull: true
|
pull: true
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 28 KiB |
Loading…
Reference in a new issue