ci-remote-executor.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Check Remote Executor
  2. on:
  3. pull_request:
  4. paths:
  5. - .github/workflows/ci-remote-executor.yml
  6. - governance/remote_executor/**
  7. push:
  8. branches: [main]
  9. jobs:
  10. test:
  11. runs-on: ubuntu-latest
  12. defaults:
  13. run:
  14. working-directory: governance/remote_executor
  15. steps:
  16. - uses: actions/checkout@v2
  17. - uses: actions/setup-python@v2
  18. - uses: actions-rs/toolchain@v1
  19. with:
  20. profile: minimal
  21. toolchain: 1.73.0
  22. components: rustfmt, clippy
  23. override: true
  24. - uses: Swatinem/rust-cache@v2
  25. with:
  26. workspaces: "governance/remote_executor -> target"
  27. - name: Install Solana
  28. run: |
  29. sh -c "$(curl -sSfL https://release.solana.com/v1.18.23/install)"
  30. echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
  31. - name: Format check
  32. run: cargo fmt --all -- --check
  33. if: success() || failure()
  34. - name: Clippy check
  35. run: cargo clippy --tests -- --deny warnings
  36. if: success() || failure()
  37. - name: Run executor tests
  38. run: cargo test-sbf
  39. if: success() || failure()