advent-of-code/.github/workflows/rust.yaml

25 lines
409 B
YAML
Raw Normal View History

2020-12-15 10:59:13 +01:00
name: Rust
on:
push:
2021-11-25 16:04:31 +01:00
branches: [ main ]
2020-12-15 10:59:13 +01:00
pull_request:
2021-11-25 16:04:31 +01:00
branches: [ main ]
2020-12-15 10:59:13 +01:00
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
2022-12-06 01:22:17 +01:00
- uses: actions/checkout@v3
2020-12-17 01:36:32 +01:00
- name: Format
2021-11-25 16:53:58 +01:00
run: cargo fmt --all -- --check
2020-12-15 10:59:13 +01:00
- name: Lint
2021-11-25 16:53:58 +01:00
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
2020-12-15 10:59:13 +01:00
- name: Run tests
run: make check-all