Compare commits

...

2 Commits

Author SHA1 Message Date
Alie cfea73c6e8 fixed an issue with a test
Build image / build (push) Waiting to run Details
Unit Tests with cargo / unit-test (push) Has been cancelled Details
2024-01-29 14:24:20 +01:00
Alie 3de985cf48 Actually i need to cache target tbh 2024-01-29 14:21:45 +01:00
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ jobs:
container:
image: rust
volumes:
- /usr/local/cargo:/usr/local/cargo:rw
- /usr/local/cargo/:/workspace/fedi-image-bot/bot-mastodon-image-uploader/target/:rw
steps:
- name: Installing necessary packages
run: apt update && apt install nodejs git -y

View File

@ -339,6 +339,7 @@ mod tests {
fn get_next_url_works() {
let config = get_config();
// Reset file
std::fs::write(&config.files.urls, &TEST_URL).unwrap();
std::fs::write(&config.files.posted, "").unwrap();
// Get test url