-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: improve CI & tests * chore: Switch to lurk-lab fork of abomonation_derive - Updated the repository source for the `abomonation_derive` dependency in the Cargo.toml file - Switched from `winston-h-zhang` repository to `lurk-lab` for more updated and maintained versions * chore: add dependabot config
- Loading branch information
1 parent
76aa073
commit e59041c
Showing
7 changed files
with
94 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[profile.ci] | ||
# Print out output for failing tests as soon as they fail, and also at the end | ||
# of the run (for easy scrollability). | ||
failure-output = "immediate-final" | ||
# Show skipped tests in the CI output. | ||
status-level = "skip" | ||
# Do not cancel the test run on the first failure. | ||
fail-fast = false | ||
# Mark tests as slow after 5mins, kill them after 20mins | ||
slow-timeout = { period = "300s", terminate-after = 4 } | ||
# Retry failed tests once, marked flaky if test then passes | ||
retries = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directory: / | ||
pull-request-branch-name: | ||
separator: "-" | ||
schedule: | ||
interval: weekly | ||
groups: | ||
rust-dependencies: | ||
patterns: | ||
- "*" | ||
open-pull-requests-limit: 5 | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,62 @@ | ||
name: Build and Test Nova | ||
|
||
on: | ||
merge_group: | ||
push: | ||
branches: [ main ] | ||
branches: [ dev ] | ||
pull_request: | ||
branches: [ main ] | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
branches: [ dev ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_NET_RETRY: 10 | ||
RUSTUP_MAX_RETRIES: 10 | ||
RUST_BACKTRACE: short | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
RUSTFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install | ||
run: rustup default stable | ||
- name: Install rustfmt Components | ||
run: rustup component add rustfmt | ||
- name: Install clippy | ||
run: rustup component add clippy | ||
- name: Install Wasm target | ||
run: rustup target add wasm32-unknown-unknown | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Wasm build | ||
run: cargo build --target wasm32-unknown-unknown | ||
- name: Build examples | ||
run: cargo build --examples --verbose | ||
- name: Build benches | ||
run: cargo build --benches --verbose | ||
- name: Run tests | ||
run: cargo +stable test --release --verbose | ||
- name: Check Rustfmt Code Style | ||
run: cargo fmt --all -- --check | ||
- name: Check clippy warnings | ||
run: cargo clippy --all-targets -- -D warnings | ||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
- uses: taiki-e/install-action@nextest | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Build, with benches & examples | ||
run: cargo build --profile dev-ci --benches --examples | ||
- name: Linux Tests in parallel, with nextest profile ci and cargo profile dev-ci | ||
run: | | ||
cargo nextest run --profile ci --workspace --cargo-profile dev-ci | ||
misc: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
env: | ||
RUSTFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
components: rustfmt, clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: rustup target add wasm32-unknown-unknown | ||
- name: Wasm build | ||
run: cargo build --target wasm32-unknown-unknown | ||
- name: Check Rustfmt Code Style | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
- name: Check clippy warnings | ||
run: cargo clippy --all-targets -- -D warnings | ||
- name: Doctests | ||
run: cargo test --doc --workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.70.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters