Skip to content

Commit

Permalink
Some tweaks to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
james-w committed Jul 15, 2024
1 parent 95f7cbb commit b75e1b0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
5 changes: 5 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
2 changes: 1 addition & 1 deletion tests/test_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit b75e1b0

Please sign in to comment.