ci-hermes-server.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. profile: minimal
  23. toolchain: 1.82.0
  24. components: rustfmt, clippy
  25. override: true
  26. - name: Install protoc
  27. uses: arduino/setup-protoc@v3
  28. with:
  29. repo-token: ${{ secrets.GITHUB_TOKEN }}
  30. - name: Format check
  31. run: cargo fmt --all -- --check
  32. if: success() || failure()
  33. - name: Clippy check
  34. run: cargo clippy --tests -- --deny warnings
  35. if: success() || failure()
  36. - name: Run executor tests
  37. run: cargo test
  38. if: success() || failure()