Skip to content

Commit

Permalink
Add CI workflow (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilssonk authored Jun 25, 2022
1 parent 3b1deda commit 90aea2d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build, Lint and Test
on: [push]
jobs:
Build-Lint-Test:
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v2
- name: Format
run: |
cargo fmt --all -- --check
- name: Clippy
run: |
cargo clippy -- -D warnings
- name: Test
run: |
cargo test --features=fail-on-warnings
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ repository = "https://github.com/nilssonk/rugged"
categories = ["network-programming", "command-line-utilities"]
edition = "2021"

[features]
fail-on-warnings = []

[dependencies]
rl2tp = "0.2.0"
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(feature = "fail-on-warnings", deny(warnings))]

fn main() {
println!("Hello, world!");
}

0 comments on commit 90aea2d

Please sign in to comment.