ci-hermes-server.yml 1008 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Check Hermes Server
  2. on:
  3. pull_request:
  4. paths:
  5. - .github/workflows/ci-hermes-server.yml
  6. - apps/hermes/server/**
  7. push:
  8. branches: [main]
  9. jobs:
  10. test:
  11. runs-on: ubuntu-latest
  12. defaults:
  13. run:
  14. working-directory: apps/hermes/server
  15. steps:
  16. - uses: actions/checkout@v2
  17. - uses: Swatinem/rust-cache@v2
  18. with:
  19. workspaces: "apps/hermes/server -> target"
  20. - uses: actions-rs/toolchain@v1
  21. with:
  22. toolchain: 1.82.0
  23. components: rustfmt, clippy
  24. override: true
  25. - name: Install protoc
  26. uses: arduino/setup-protoc@v3
  27. with:
  28. repo-token: ${{ secrets.GITHUB_TOKEN }}
  29. - name: Format check
  30. run: cargo fmt --all -- --check
  31. if: success() || failure()
  32. - name: Clippy check
  33. run: cargo clippy --tests -- --deny warnings
  34. if: success() || failure()
  35. - name: Run executor tests
  36. run: cargo test
  37. if: success() || failure()