ci-pyth-lazer-agent.yml 864 B

12345678910111213141516171819202122232425262728293031
  1. name: "pyth-lazer-agent Rust Test Suite"
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. paths:
  8. - .github/workflows/ci-pyth-lazer-agent.yml
  9. - apps/pyth-lazer-agent/**
  10. jobs:
  11. pyth-lazer-agent-rust-test-suite:
  12. name: pyth-lazer-agent Rust Test Suite
  13. runs-on: ubuntu-22.04
  14. defaults:
  15. run:
  16. working-directory: apps/pyth-lazer-agent
  17. steps:
  18. - uses: actions/checkout@v4
  19. with:
  20. submodules: recursive
  21. - uses: actions-rust-lang/setup-rust-toolchain@v1
  22. - name: Format check
  23. run: cargo fmt --all -- --check
  24. if: success() || failure()
  25. - name: Clippy check
  26. run: cargo clippy -p pyth-lazer-agent --all-targets -- --deny warnings
  27. if: success() || failure()
  28. - name: test
  29. run: cargo test -p pyth-lazer-agent
  30. if: success() || failure()