mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2024-12-25 18:36:31 +00:00
Update testing commands
This commit is contained in:
parent
a2699a695f
commit
7d545b55af
4 changed files with 39 additions and 9 deletions
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
|
@ -54,16 +54,41 @@ jobs:
|
|||
override: true
|
||||
components: rustfmt
|
||||
|
||||
- name: Run Cargo check
|
||||
- name: Run `cargo +stable check --all-targets`
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
command: check
|
||||
args: --all-targets
|
||||
|
||||
- name: Run Cargo test
|
||||
- name: Run `cargo +stable check --all-targets --features tracing`
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
command: check
|
||||
args: --all-targets --features tracing
|
||||
|
||||
- name: Run `cargo check --all-targets --features nightly,tracing`
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --all-targets --features nightly,tracing
|
||||
|
||||
- name: Run `cargo build --all-targets --features nightly,deny-unknown`
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --all-targets --features nightly,deny-unknown
|
||||
|
||||
- name: Run `cargo test --features nightly,deny-unknown`
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --features nightly,deny-unknown
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
RUSTLOG: riven=trace
|
||||
RGAPI_KEY: ${{ secrets.RGAPI_KEY }}
|
||||
|
||||
# lints:
|
||||
# name: Lints
|
||||
|
|
2
rust-toolchain.toml
Normal file
2
rust-toolchain.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
[toolchain]
|
||||
channel = "nightly"
|
|
@ -1,12 +1,13 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
set -euxo pipefail
|
||||
|
||||
# Ensure stable builds.
|
||||
cargo +stable test --no-run
|
||||
cargo +stable test --no-run --features tracing
|
||||
cargo +stable check --all-targets
|
||||
cargo +stable check --all-targets --features tracing
|
||||
|
||||
# Ensure nightly builds.
|
||||
cargo +nightly test --no-run --features nightly,tracing
|
||||
cargo check --all-targets --features nightly,tracing
|
||||
cargo build --all-targets --features nightly,deny-unknown
|
||||
|
||||
# Run tests on nightly.
|
||||
RGAPI_KEY="$(cat apikey.txt)" RUST_BACKTRACE=1 RUST_LOG=riven=trace cargo +nightly test --features nightly,deny-unknown -- --nocapture
|
||||
# Run nightly tests.
|
||||
bash test.bash
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
#!/bin/bash
|
||||
RGAPI_KEY="$(cat apikey.txt)" RUST_BACKTRACE=1 RUST_LOG=riven=trace cargo +nightly test --features nightly,deny-unknown-fields $1 -- --nocapture
|
||||
set -euxo pipefail
|
||||
|
||||
RGAPI_KEY="$(cat apikey.txt)" RUST_BACKTRACE=1 RUST_LOG=riven=trace cargo test --features nightly,deny-unknown -- --nocapture
|
||||
|
|
Loading…
Reference in a new issue