Skip to content

Commit a1a86c2

Browse files
committed
Add initial CI configuration
This will trigger on all pushes and all pull requests and run `cargo build` and `cargo test`, following the documentation at https://doc.rust-lang.org/cargo/guide/continuous-integration.html
1 parent b01eb3b commit a1a86c2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
build_and_test:
12+
name: Rust project - latest
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install Rust
17+
uses: dtolnay/rust-toolchain@stable
18+
- name: Build
19+
run: cargo build --verbose
20+
- name: Test
21+
run: cargo test --verbose

0 commit comments

Comments
 (0)