Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Format, Clippy and Build

on:
push:
branches:
- master
pull_request:
branches:
- master


env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"

jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Ensures everything is formatted properly.
run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
needs: fmt
steps:
- uses: actions/checkout@v2
- name: Set of lints used by default to make code cleaner.
run: cargo clippy --all-targets --all-features -- -D clippy::all
build:
runs-on: ubuntu-latest
needs: clippy
steps:
- uses: actions/checkout@v2
- name: Ensures the code builds.
run: cargo build
test:
runs-on: ubuntu-latest
needs: build
steps:
uses: actions/checkout@v2
name: Ensures all tests pass.
run: cargo test --all-targets --all-features
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/target
Cargo.lock
.vscode