diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 06d2bc2..433c1a9 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -8,6 +8,10 @@ jobs: cargo: timeout-minutes: 12 runs-on: ubuntu-latest + permissions: + checks: write + packages: read + contents: read steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 @@ -20,11 +24,20 @@ jobs: - name: Setup cargo cache uses: Swatinem/rust-cache@v2 continue-on-error: false + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + - name: Install nextest + uses: taiki-e/install-action@nextest - name: Run cargo fmt run: cargo fmt --check - name: Run tests - run: cargo test - - name: Check lint - run: cargo clippy --all-targets --all-features -- -D warnings + run: cargo llvm-cov --all-features --workspace --codecov --output-path lcov.info nextest + - name: Show coverage report + run: cargo llvm-cov report + - name: Check link + uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-targets --all-features -- -D warnings - name: Run cargo check run: cargo check diff --git a/TODO.md b/TODO.md index 3fe5e64..b8b45a5 100644 --- a/TODO.md +++ b/TODO.md @@ -3,3 +3,8 @@ * Shell command/artifact types * Command artifact that runs a command to generate the artifact * Smarter args handling for extends, e.g. cargo vs cargo test +* Don't error if daemon is already started when it's required as a dependency +* Outputs stored on the filesystem +* Stop getting ESCRH when trying to send signal +* Cleanup manager and to_stop resolution +* Is it possible to reparent daemons so that the stop command is more reliable? diff --git a/tests/test_build.rs b/tests/test_build.rs index b475543..bad507f 100644 --- a/tests/test_build.rs +++ b/tests/test_build.rs @@ -143,7 +143,7 @@ fn test_build_rebuilds_if_file_changes() { .unwrap(); // Tiny sleep to make sure the timestamp changes - thread::sleep(Duration::from_nanos(100)); + thread::sleep(Duration::from_nanos(500)); test_context.workdir.child("hello").touch().unwrap();