ci-remote-executor.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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-rust-lang/setup-rust-toolchain@v1
  19. with:
  20. cache-workspaces: "governance/remote_executor -> target"
  21. - name: Install Solana
  22. run: |
  23. sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.23/install)"
  24. echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
  25. - name: Format check
  26. run: cargo fmt --all -- --check
  27. if: success() || failure()
  28. - name: Clippy check
  29. run: cargo clippy --all-targets -- --deny warnings
  30. if: success() || failure()
  31. - name: Run executor tests
  32. run: cargo test-sbf
  33. if: success() || failure()