Skip to content

Commit 4e7bed0

Browse files
Add formatting checks
1 parent 81c21fd commit 4e7bed0

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.github/workflows/rust.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Check formatting
20+
run: cargo fmt -- --check

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ os:
77

88
cache: cargo
99
script:
10-
- cargo build --release --verbose
10+
- cargo build --release --verbose
11+
- cargo test --release --verbose

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//!
33
//! Call of Ferris is a thrilling action game where your favorite Ferris the crab and the rust mascot got guns and has taken up the duty to find evildoer languages while managing to keep itself alive.
44
//! Take part in this awesome adventure and help Ferris be the best ever!
5+
//!
6+
//! For a fuller outline, see the project [README.md](https://github.com/Andy-Python-Programmer/CallOfFerris)
57
68
use std::{fs, rc::Rc, sync::Mutex};
79

0 commit comments

Comments
 (0)