rust.yml 370 B

123456789101112131415161718192021222324
  1. name: Rust
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. env:
  8. CARGO_TERM_COLOR: always
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v3
  14. - name: Build
  15. run: cargo build --verbose
  16. - name: Run tests
  17. run: cargo test --verbose
  18. - name: Check formatting
  19. run: cargo fmt --check