Skip to content

Build is broken, trying to fix it #301

Build is broken, trying to fix it

Build is broken, trying to fix it #301

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
cargo-fmt:
name: Cargo Fmt, Clippy and Udeps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
- run: rm -rf ~/.cargo/bin
- run: nix-shell --pure --run 'cargo fmt --all -- --check'
- run: nix-shell --pure --run 'cargo clippy --all --all-features -- -D warnings'
# cargo-udeps doesn't support package.target (yet)
- run: nix-shell --pure --run 'cargo udeps -p kannader --all-targets'
- run: nix-shell --pure --run 'cargo udeps -p kannader-config-example --all-targets --target wasm32-wasi'
cargo-tests:
name: Cargo Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
- run: nix-shell --pure --run 'cargo build --all --all-features'
- run: nix-shell --pure --run 'cargo test --all --all-features'
- run: nix-shell --pure --run 'cargo doc --all --all-features'
mdbook-tests:
name: Book Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
- run: nix-shell --pure --run 'mdbook build book'
- run: nix-shell --pure --run 'mdbook test book'
integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
# TODO: naersk currently badly supports git dependencies.
# Re-enable this build once it's fixed
# - run: nix-build default.nix
# TODO: re-enable test after having figured out how to make the github run
# of it less wobbly (due to github not having kvm)
# - run: nix-build tests/basic-test.nix