Skip to content

Commit

Permalink
ci: add semver check & bump version (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
BugenZhao authored Mar 28, 2024
1 parent 3f1915f commit 7348636
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/check-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,33 @@ name: Check and Test

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:

cargo-check-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Format
run: cargo fmt --check
- name: Build
run: cargo build --all-targets --all-features
- name: Clippy
run: cargo clippy --all-targets --all-features
- name: Run tests
run: cargo test

semver:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Format
run: cargo fmt --check
- name: Build
run: cargo build --all-targets --all-features
- name: Clippy
run: cargo clippy --all-targets --all-features
- name: Run tests
run: cargo test
- uses: actions/checkout@v3
- uses: cargo-bins/cargo-binstall@main
- name: Install cargo-semver-checks
run: cargo binstall -y cargo-semver-checks
- name: Check
run: cargo semver-checks check-release -p await-tree
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "await-tree"
version = "0.1.2"
version = "0.2.0"
edition = "2021"
description = "Instrument await-tree for actor-based applications."
repository = "https://github.com/risingwavelabs/await-tree"
Expand All @@ -11,18 +11,18 @@ license = "Apache-2.0"

[dependencies]
coarsetime = "0.1"
derive_builder = "0.12"
derive_builder = "0.20"
flexstr = "0.9"
indextree = "4"
itertools = "0.11"
itertools = "0.12"
parking_lot = "0.12"
pin-project = "1"
tokio = { version = "1", features = ["rt"] }
tracing = "0.1"
weak-table = "0.3.2"

[dev-dependencies]
criterion = { version = "0.4", features = ["async", "async_tokio"] }
criterion = { version = "0.5", features = ["async", "async_tokio"] }
futures = { version = "0.3", default-features = false, features = ["alloc"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "time", "macros"] }

Expand Down
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.74

0 comments on commit 7348636

Please sign in to comment.