chore: Remove unused IPFS/Pinata caching code #7511
Workflow file for this run
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
| name: CI | |
| on: [push] | |
| env: | |
| NODE_OPTIONS: "--max_old_space_size=4096" | |
| jobs: | |
| build: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| # The following is a similar implementation to the Solana Developers GitHub Action: | |
| # https://github.com/solana-developers/github-actions/blob/main/extract-versions/action.yaml | |
| # It is adapted to extract only the Solana version from a remote repository (across-protocol/contracts). | |
| - name: Extract Solana version from across‑protocol/contracts | |
| id: extract-versions | |
| run: | | |
| set -euo pipefail | |
| REPO="across-protocol/contracts" | |
| REF="main" | |
| WORKDIR="/tmp/contracts" | |
| mkdir -p "$WORKDIR" | |
| curl -sSfL "https://raw.githubusercontent.com/${REPO}/${REF}/Cargo.lock" \ | |
| -o "${WORKDIR}/Cargo.lock" || true | |
| cd "$WORKDIR" | |
| if [[ -n "${OVERRIDE_SOLANA_VERSION:-}" ]]; then | |
| SOLANA_VERSION="${OVERRIDE_SOLANA_VERSION}" | |
| else | |
| if [[ -f Cargo.lock ]]; then | |
| SOLANA_VERSION=$(grep -A2 'name = "solana-program"' Cargo.lock \ | |
| | grep 'version' | head -n1 | cut -d'"' -f2 || true) | |
| fi | |
| fi | |
| SOLANA_VERSION=$(echo "$SOLANA_VERSION" \ | |
| | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+') | |
| echo "SOLANA_VERSION=$SOLANA_VERSION" | tee -a "$GITHUB_ENV" | |
| echo "solana_version=$SOLANA_VERSION" >> "$GITHUB_OUTPUT" | |
| - uses: solana-developers/github-actions/setup-all@v0.2.6 | |
| with: | |
| solana_version: ${{ steps.extract-versions.outputs.solana_version }} | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22.18.0 | |
| - run: yarn install | |
| - run: yarn test | |
| env: | |
| NODE_URL_1: ${{ secrets.NODE_URL_1 }} |