aquatic-crawler/.github/workflows/build.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 22: mapping key "name" already defined at line 20 line 23: mapping key "run" already defined at line 21
2025-07-06 23:41:19 +03:00

31 lines
568 B
YAML

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Update packages
run: sudo apt update
name: Update cargo
run: cargo update
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose