Files
advent-of-code-2017/.github/workflows/rust.yml
Smaug123 6537f253e0 Day 5
2021-05-09 11:21:43 +01:00

27 lines
447 B
YAML

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose --release
- name: Run tests
run: cargo test --verbose --release
- name: Clippy
run: cargo clippy -- -D warnings
- name: Format
run: cargo fmt --all -- --check