diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index 4908128..0a83217 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -16,9 +16,7 @@ jobs: - name: ๐Ÿ“Ž Clippy run: cargo clippy --all -- -D warnings - name: ๐Ÿงช Test - run: | - ./tests/testfiles/sites/make_zip.sh - cargo nextest run --config-file ~/.config/nextest.toml --profile ci --workspace + run: cargo nextest run --config-file ~/.config/nextest.toml --profile ci --workspace - name: ๐Ÿ’Œ Upload test report if: always() uses: https://code.forgejo.org/forgejo/upload-artifact@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 149b09e..40d8205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ All notable changes to this project will be documented in this file. ### ๐Ÿงช Testing - Add integration tests - ([4aaff46](https://codeberg.org/ThetaDev/artifactview/commit/4aaff462bb602180832cae3fe902161d2f8043a9)) +- Create cache dir - ([9ebd487](https://codeberg.org/ThetaDev/artifactview/commit/9ebd487ff40ae917dc17397be2f0a211ac57e457)) ### โš™๏ธ Miscellaneous Tasks diff --git a/src/util.rs b/src/util.rs index 5ce1238..e84ca2c 100644 --- a/src/util.rs +++ b/src/util.rs @@ -307,6 +307,7 @@ pub(crate) mod tests { }); pub fn setup_cache_dir(dir: &Path) { + std::fs::create_dir_all(dir).unwrap(); for entry in std::fs::read_dir(SITEDIR.as_path()).unwrap() { let entry = entry.unwrap(); if entry.file_type().unwrap().is_file() {