mirror of
https://github.com/Smaug123/advent-of-code-2017
synced 2025-10-05 19:48:40 +00:00
31 lines
572 B
YAML
31 lines
572 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
|
|
- name: Run tests
|
|
run: cargo test --verbose
|
|
- name: Build (release)
|
|
run: cargo build --verbose --release
|
|
- name: Run tests (release)
|
|
run: cargo test --verbose --release
|
|
- name: Clippy
|
|
run: cargo clippy -- -D warnings
|
|
- name: Format
|
|
run: cargo fmt --all -- --check
|