ci-remote-executor.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. toolchain: 1.73.0
  21. components: rustfmt, clippy
  22. override: true
  23. - uses: Swatinem/rust-cache@v2
  24. with:
  25. workspaces: "governance/remote_executor -> target"
  26. - name: Install Solana
  27. run: |
  28. sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.23/install)"
  29. echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
  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-sbf
  38. if: success() || failure()