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
|
override: true
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
|
|
||||||
- name: Run Cargo check
|
- name: Run `cargo +stable check --all-targets`
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
toolchain: stable
|
||||||
command: check
|
command: check
|
||||||
args: --all-targets
|
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
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
|
args: --features nightly,deny-unknown
|
||||||
|
env:
|
||||||
|
RUST_BACKTRACE: 1
|
||||||
|
RUSTLOG: riven=trace
|
||||||
|
RGAPI_KEY: ${{ secrets.RGAPI_KEY }}
|
||||||
|
|
||||||
# lints:
|
# lints:
|
||||||
# name: 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
|
#!/bin/bash
|
||||||
set -e
|
set -euxo pipefail
|
||||||
|
|
||||||
# Ensure stable builds.
|
# Ensure stable builds.
|
||||||
cargo +stable test --no-run
|
cargo +stable check --all-targets
|
||||||
cargo +stable test --no-run --features tracing
|
cargo +stable check --all-targets --features tracing
|
||||||
|
|
||||||
# Ensure nightly builds.
|
# 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.
|
# Run nightly tests.
|
||||||
RGAPI_KEY="$(cat apikey.txt)" RUST_BACKTRACE=1 RUST_LOG=riven=trace cargo +nightly test --features nightly,deny-unknown -- --nocapture
|
bash test.bash
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
#!/bin/bash
|
#!/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