diff --git a/.forgejo/workflows/check.yaml b/.forgejo/workflows/check.yaml index 8d55923..4ff3eb7 100644 --- a/.forgejo/workflows/check.yaml +++ b/.forgejo/workflows/check.yaml @@ -68,23 +68,23 @@ jobs: cargo test --lib env: RUSTFLAGS: --cfg tokio_unstable --cfg system_deps - - - name: Run integration tests - run: | - set -x - for test in animation background basic content_length details image process - do - cargo test --test $test - done - env: - RUSTFLAGS: --cfg tokio_unstable --cfg system_deps - LD_LIBRARY_PATH: "/usr/local/lib" - name: Run doctests run: | cargo test --doc env: RUSTFLAGS: --cfg tokio_unstable --cfg system_deps + - + name: Run integration tests + run: | + set -x + for testFile in $(ls tests/*.rs) + do + cargo test --test ${${testFile#tests/}%.rs} + done + env: + RUSTFLAGS: --cfg tokio_unstable --cfg system_deps + LD_LIBRARY_PATH: "/usr/local/lib" check: diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index 3d01eb5..499a182 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -62,10 +62,26 @@ jobs: uses: https://git.asonix.dog/asonix/actions/install-imagemagick@main with: version: 7.1.1-46 + - + name: Run library tests + run: | + cargo test --lib + env: + RUSTFLAGS: --cfg tokio_unstable --cfg system_deps + - + name: Run doctests + run: | + cargo test --doc + env: + RUSTFLAGS: --cfg tokio_unstable --cfg system_deps - name: Run integration tests run: | - cargo test + set -x + for testFile in $(ls tests/*.rs) + do + cargo test --test ${${testFile#tests/}%.rs} + done env: RUSTFLAGS: --cfg tokio_unstable --cfg system_deps LD_LIBRARY_PATH: "/usr/local/lib"