Skip to content

Commit a58b6c0

Browse files
authored
Merge pull request #21 from lambdaclass/add_minimal_ci
add minimal CI to proyect
2 parents c6f757c + bd41545 commit a58b6c0

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Build
19+
run: cargo build --verbose
20+
21+
test:
22+
runs-on: ubuntu-latest
23+
needs: build
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: Swatinem/rust-cache@v2
28+
- name: Run Tests
29+
run: cargo test --verbose
30+
31+
clippy:
32+
runs-on: ubuntu-latest
33+
needs: build
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: Swatinem/rust-cache@v2
38+
- name: Run Clippy
39+
run: cargo clippy --all-targets -- -D warnings

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[workspace]
2+
resolver = "3"
23
members = [
34
"rt",
45
"examples/bank",
@@ -17,5 +18,3 @@ spawned-rt = { version = "0.1.0", path = "rt" }
1718
spawned-concurrency = { version = "0.1.0", path = "concurrency" }
1819
tracing = { version = "0.1.41", features = ["log"] }
1920
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
20-
21-

0 commit comments

Comments
 (0)