mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-15 00:43:59 +00:00
Minor CI improvements (#4266)
* Speed up SQL formatting in CI with parallel processing * mess up formatting * check permissions * make repo world writable * need git * use debian image * apt update * perl image for faster install * fix format * run restore cache in parallel to format * add drone-cache exit code * revert sql format changes
This commit is contained in:
parent
ac209d58b4
commit
af4d008ce4
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,7 @@ steps:
|
||||||
- if [[ "$IGNORED" ]]; then echo "Ignored files present:\n$IGNORED\n"; exit 1; fi
|
- if [[ "$IGNORED" ]]; then echo "Ignored files present:\n$IGNORED\n"; exit 1; fi
|
||||||
|
|
||||||
restore-cache:
|
restore-cache:
|
||||||
|
group: format
|
||||||
image: meltwater/drone-cache:v1
|
image: meltwater/drone-cache:v1
|
||||||
pull: true
|
pull: true
|
||||||
settings:
|
settings:
|
||||||
|
@ -104,6 +105,7 @@ steps:
|
||||||
- ".cargo_home"
|
- ".cargo_home"
|
||||||
- "target"
|
- "target"
|
||||||
- "api_tests/node_modules"
|
- "api_tests/node_modules"
|
||||||
|
exit_code: true
|
||||||
secrets:
|
secrets:
|
||||||
[MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET]
|
[MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET]
|
||||||
when: *slow_check_paths
|
when: *slow_check_paths
|
||||||
|
@ -230,6 +232,7 @@ steps:
|
||||||
- ".cargo_home"
|
- ".cargo_home"
|
||||||
- "target"
|
- "target"
|
||||||
- "api_tests/node_modules"
|
- "api_tests/node_modules"
|
||||||
|
exit_code: true
|
||||||
secrets:
|
secrets:
|
||||||
[MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET]
|
[MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET]
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in a new issue