-
Notifications
You must be signed in to change notification settings - Fork 13
ci: add surfpool integration workflow #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
shahan-khatchadourian-anchorage
wants to merge
1
commit into
shahankhatch/surfpool_testing
from
shahankhatch/surfpool-ci-workflow
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| name: "Surfpool Integration: Solana" | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, labeled] | ||
|
|
||
| jobs: | ||
| surfpool: | ||
| if: contains(github.event.pull_request.labels.*.name, 'surfpool') | ||
| runs-on: ubuntu-latest-4-cores | ||
| permissions: | ||
| pull-requests: write | ||
| steps: | ||
| - name: git checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Install Rust | ||
| uses: actions-rust-lang/setup-rust-toolchain@fb51252c7ba57d633bc668f941da052e410add48 # v1.13.0 | ||
| with: | ||
| components: clippy, rustfmt | ||
| - name: Cache Rust dependencies | ||
| uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry/index/ | ||
| ~/.cargo/registry/cache/ | ||
| ~/.cargo/git/db/ | ||
| src/target/ | ||
| key: ${{ runner.os }}-cargo-surfpool-${{ hashFiles('src/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-surfpool- | ||
| ${{ runner.os }}-cargo- | ||
| - name: Install surfpool | ||
| run: cargo install surfpool --git https://github.com/txtx/surfpool --locked | ||
|
shahan-khatchadourian-anchorage marked this conversation as resolved.
shahan-khatchadourian-anchorage marked this conversation as resolved.
|
||
| - name: install protoc | ||
| uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0 | ||
| with: | ||
| version: "21.4" | ||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: free disk space | ||
| run: | | ||
| sudo swapoff -a | ||
| sudo rm -f /swapfile | ||
| sudo apt clean | ||
| df -h | ||
| - name: Run codegen | ||
| run: make -C src generated | ||
| - name: Run surfpool integration tests | ||
| id: surfpool | ||
| continue-on-error: true | ||
| env: | ||
| HELIUS_API_KEY: ${{ secrets.HELIUS_API_KEY }} | ||
| run: ./scripts/surfpool_fuzz_all_idls.sh | ||
|
shahan-khatchadourian-anchorage marked this conversation as resolved.
|
||
| - name: Label PR on surfpool failure | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| PR_NUMBER: ${{ github.event.pull_request.number }} | ||
| run: | | ||
| if [ "${{ steps.surfpool.outcome }}" = "failure" ]; then | ||
| gh pr edit "$PR_NUMBER" --add-label surfpool-failure || true | ||
| else | ||
| gh pr edit "$PR_NUMBER" --remove-label surfpool-failure || true | ||
| fi | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.