Cache & Optimize Woodpecker CI (#3450)
authorcetra3 <cetra3@hotmail.com>
Mon, 17 Jul 2023 15:04:14 +0000 (00:34 +0930)
committerGitHub <noreply@github.com>
Mon, 17 Jul 2023 15:04:14 +0000 (11:04 -0400)
commit92568956353f21649ed9aff68b42699c9d036f30
tree1918c193e6477b00ca6754e766cb72e6ff2d2d2f
parent88215bfbc98b70595035426c06cfe67f4a9ab0ab
Cache & Optimize Woodpecker CI (#3450)

* Try using drone cache plugin

* Try another path

* Include volume

* Fix formatting

* Include fmt

* Exclude cargo dir from prettier

* Don't override cargo

* Just do check

* Add cache key

* Use different cache plugin

* Add clippy

* Try minio

* Add quotes

* Try adding secrets

* Try again

* Again

* Use correct secret formation

* Add back clippy

* Use secret for the root bucket name

* Try drone cache instead

* Add region

* Add path-style option

* Include cargo clippy

* Include everything again

* Fix formatting

* Don't run clippy twice

* Add `allow` statements for tests to pass

* Adjust endpoint to be a secret

* Fix prettier

* Merge & fix tests

* Try to restart the woodpecker test

* Change the ENV var name

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
65 files changed:
.woodpecker.yml
crates/api/src/lib.rs
crates/api_common/src/request.rs
crates/api_common/src/utils.rs
crates/api_crud/src/site/create.rs
crates/api_crud/src/site/mod.rs
crates/api_crud/src/site/update.rs
crates/apub/src/activity_lists.rs
crates/apub/src/collections/community_moderators.rs
crates/apub/src/objects/comment.rs
crates/apub/src/objects/community.rs
crates/apub/src/objects/instance.rs
crates/apub/src/objects/mod.rs
crates/apub/src/objects/person.rs
crates/apub/src/objects/post.rs
crates/apub/src/objects/private_message.rs
crates/apub/src/protocol/activities/block/mod.rs
crates/apub/src/protocol/activities/community/mod.rs
crates/apub/src/protocol/activities/create_or_update/mod.rs
crates/apub/src/protocol/activities/deletion/mod.rs
crates/apub/src/protocol/activities/following/mod.rs
crates/apub/src/protocol/activities/mod.rs
crates/apub/src/protocol/activities/voting/mod.rs
crates/apub/src/protocol/collections/mod.rs
crates/apub/src/protocol/mod.rs
crates/apub/src/protocol/objects/mod.rs
crates/apub/src/protocol/objects/page.rs
crates/db_schema/src/aggregates/comment_aggregates.rs
crates/db_schema/src/aggregates/community_aggregates.rs
crates/db_schema/src/aggregates/person_aggregates.rs
crates/db_schema/src/aggregates/post_aggregates.rs
crates/db_schema/src/aggregates/site_aggregates.rs
crates/db_schema/src/impls/activity.rs
crates/db_schema/src/impls/actor_language.rs
crates/db_schema/src/impls/captcha_answer.rs
crates/db_schema/src/impls/comment.rs
crates/db_schema/src/impls/comment_reply.rs
crates/db_schema/src/impls/community.rs
crates/db_schema/src/impls/federation_allowlist.rs
crates/db_schema/src/impls/language.rs
crates/db_schema/src/impls/moderator.rs
crates/db_schema/src/impls/password_reset_request.rs
crates/db_schema/src/impls/person.rs
crates/db_schema/src/impls/person_mention.rs
crates/db_schema/src/impls/post.rs
crates/db_schema/src/impls/private_message.rs
crates/db_schema/src/utils.rs
crates/db_views/src/comment_report_view.rs
crates/db_views/src/comment_view.rs
crates/db_views/src/post_report_view.rs
crates/db_views/src/post_view.rs
crates/db_views/src/private_message_report_view.rs
crates/db_views/src/registration_application_view.rs
crates/utils/src/error.rs
crates/utils/src/rate_limit/mod.rs
crates/utils/src/rate_limit/rate_limiter.rs
crates/utils/src/utils/markdown.rs
crates/utils/src/utils/markdown/spoiler_rule.rs
crates/utils/src/utils/mention.rs
crates/utils/src/utils/slurs.rs
crates/utils/src/utils/validation.rs
scripts/fix-clippy.sh
src/lib.rs
src/prometheus_metrics.rs
src/scheduled_tasks.rs