Skip to content

Commit

Permalink
ci: Run tests
Browse files Browse the repository at this point in the history
We were not running tests in ci, so fix this, also add a step just to
enter the nix dev environment so the we know how long does it take to
pull / build our native dependencies and tooling.

Also changing `check` -> `build` as the CLI integration tests require
the debug binary to be built. This is a bit janky and we should have
better integration with the build system. We'll change this later on.

Test Plan
=========

ci :)
  • Loading branch information
javierhonduco committed Mar 27, 2024
1 parent 15c5d9a commit f92b189
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ jobs:
- uses: actions/checkout@main
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run `cargo check`
run: nix develop --command cargo check
- name: Set up nix dev env
run: nix develop --command echo 0
- name: Run `cargo build`
run: nix develop --command cargo build
- name: Run `cargo clippy`
run: nix develop --command cargo clippy --all-targets -- -D warnings
- name: Run `cargo test`
run: nix develop --command cargo test
- name: Run `cargo fmt`
run: nix develop --command cargo fmt --check
- name: Run `nix fmt`
Expand Down

0 comments on commit f92b189

Please sign in to comment.