rust.yml 455 B

123456789101112131415161718192021222324252627282930
  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. fmt:
  19. runs-on: ubuntu-latest
  20. steps:
  21. - uses: actions/checkout@v3
  22. - name: Check formatting
  23. run: cargo fmt --check