This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [cargo:cargo-nextest](https://redirect.github.com/nextest-rs/nextest) | tools | patch | `0.9.145` → `0.9.146` | --- ### Release Notes <details> <summary>nextest-rs/nextest (cargo:cargo-nextest)</summary> ### [`v0.9.146`](https://redirect.github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.146): cargo-nextest 0.9.146 [Compare Source](https://redirect.github.com/nextest-rs/nextest/compare/cargo-nextest-0.9.145...cargo-nextest-0.9.146) ##### Fixed - Updated chacha20 and der to non-yanked versions. </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/boardgamers/clash). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMDMuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjEwMy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
74 lines
2.4 KiB
TOML
74 lines
2.4 KiB
TOML
[env]
|
|
RUST_BACKTRACE = '1'
|
|
RUSTFLAGS = '-Dwarnings' # Make sure CI fails on all warnings, including Clippy lints
|
|
CARGO_TERM_COLOR = 'always'
|
|
|
|
[tasks.random-actions]
|
|
description = "Run random actions tests"
|
|
run = 'cargo test --package server --test random_actions test_random_actions -- --exact --nocapture'
|
|
dir = "server"
|
|
|
|
[tasks.profile-random-actions]
|
|
description = "Run AI random actions test with profiling"
|
|
run = ["cargo test --release --features profiling --package server --test random_actions test_random_actions -- --exact --nocapture"]
|
|
env = { ITERATIONS = "100000" }
|
|
dir = "server"
|
|
|
|
[tasks.test]
|
|
description = "Run server tests"
|
|
run = 'cargo test {{arg(name="test", default="")}}'
|
|
dir = "server"
|
|
|
|
[tasks.update-tests]
|
|
description = "Run server tests and update JSON files"
|
|
run = 'cargo nextest run {{arg(name="test", default="")}}'
|
|
env = { UPDATE_EXPECTED = "true", RUSTFLAGS = '' }
|
|
dir = "server"
|
|
|
|
[tasks.format-and-lint]
|
|
description = "Format and lint all code"
|
|
run = [
|
|
"cargo fmt",
|
|
"cargo clippy --fix --allow-dirty --allow-staged"
|
|
]
|
|
|
|
[tasks.ci]
|
|
description = "Run CI tasks server"
|
|
run = [
|
|
"rustup component add rustfmt", # should be dony by `tools` section, but doesn't work reliably in CI
|
|
"rustup component add clippy", # should be dony by `tools` section, but doesn't work reliably in CI
|
|
"cargo build",
|
|
"cargo fmt --check",
|
|
"cargo clippy",
|
|
"cargo nextest run",
|
|
"git diff --exit-code || exit 1", # Check if there are any uncommitted changes updating JSON files
|
|
]
|
|
env = { UPDATE_EXPECTED = "true", RUSTFLAGS = '' }
|
|
|
|
[tasks.profile]
|
|
description = "Run AI client with profiling"
|
|
run = ["cargo run --release --package client --features profiling --bin local_client -- ai"]
|
|
dir = "client"
|
|
|
|
[tasks.build-remote-server]
|
|
description = "Build remote server"
|
|
run = "./scripts/build-remote-server.sh test"
|
|
|
|
[tasks.build-remote-client]
|
|
description = "Build remote client"
|
|
run = "./scripts/build-remote-client.sh"
|
|
|
|
[tasks.test-pubish-server]
|
|
description = "Test publish server (the real one is done in GitHub Actions)"
|
|
run = "./scripts/publish-server.sh test"
|
|
|
|
[tasks.test-pubish-client]
|
|
description = "Test publish client (the real one is done in GitHub Actions)"
|
|
run = "./scripts/publish-client.sh test"
|
|
|
|
[tools]
|
|
"cargo:cargo-nextest" = "0.9.146"
|
|
"cargo:wasm-bindgen-cli" = "0.2.105"
|
|
"cargo:wasm-pack" = "0.15.0"
|
|
rust = { version = "1.94.1", targets = "wasm32-unknown-unknown", components = "clippy,rustfmt" }
|
|
|