diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e959b16 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + + test: + runs-on: ubuntu-latest + needs: build + + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - name: Run Tests + run: cargo test --verbose + + clippy: + runs-on: ubuntu-latest + needs: build + + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - name: Run Clippy + run: cargo clippy --all-targets -- -D warnings diff --git a/Cargo.toml b/Cargo.toml index 33c635a..c76db38 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [workspace] +resolver = "3" members = [ "rt", "examples/bank", @@ -17,5 +18,3 @@ spawned-rt = { version = "0.1.0", path = "rt" } spawned-concurrency = { version = "0.1.0", path = "concurrency" } tracing = { version = "0.1.41", features = ["log"] } tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } - -