Skip to content

Commit

Permalink
ci: add github workflows file
Browse files Browse the repository at this point in the history
  • Loading branch information
nfejzic committed Nov 7, 2023
1 parent 3625094 commit 35feb93
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Rust CI

on:
push:
branches: [ main, feature ]
pull_request:
branches: [ main, feature ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
name: Run Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose

test:
name: Run Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Run tests
run: cargo test --verbose

lint:
name: Run Linter (clippy)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Run linter
run: cargo clippy -- -D warnings

format:
name: Check Formatting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Run cargo fmt
run: cargo fmt -- --check

0 comments on commit 35feb93

Please sign in to comment.