rust.yml 612 B

12345678910111213141516171819202122232425262728293031
  1. name: Rust
  2. on:
  3. push:
  4. branches: [ main, master, develop ]
  5. pull_request:
  6. branches: [ main, master, develop ]
  7. env:
  8. CARGO_TERM_COLOR: always
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Build
  15. run: cargo build --verbose
  16. - name: Run tests
  17. run: cargo test --all --verbose
  18. clippy_check:
  19. runs-on: ubuntu-latest
  20. steps:
  21. - uses: actions/checkout@v1
  22. - run: rustup component add clippy
  23. - uses: actions-rs/clippy-check@v1
  24. with:
  25. token: ${{ secrets.GITHUB_TOKEN }}
  26. args: --all-features