chore(deps): bump actions/cache from 4 to 5 #71
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: Docs examples | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "packages/docs-examples/**" | |
| - "apps/docs/content/cookbook/**" | |
| - ".github/workflows/docs-examples.yml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "packages/docs-examples/**" | |
| - "apps/docs/content/cookbook/**" | |
| - ".github/workflows/docs-examples.yml" | |
| permissions: | |
| contents: read | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=8192 | |
| SURFPOOL_REF: 88e9333b | |
| jobs: | |
| examples-ts: | |
| name: TypeScript examples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.15.1 | |
| run_install: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| cache: "pnpm" | |
| - name: Cache Solana CLI | |
| id: solana-cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.local/share/solana/install | |
| key: solana-cli-stable-${{ runner.os }}-v1 | |
| - name: Install Solana CLI | |
| if: steps.solana-cache.outputs.cache-hit != 'true' | |
| run: sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)" | |
| - name: Add Solana CLI to PATH | |
| run: | |
| echo "$HOME/.local/share/solana/install/active_release/bin" >> | |
| "$GITHUB_PATH" | |
| - name: Verify solana-keygen | |
| run: solana-keygen --version | |
| - name: Install Safe Chain | |
| run: | | |
| npm install --global @aikidosec/safe-chain | |
| safe-chain setup-ci | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run docs-examples tests | |
| run: pnpm --filter @workspace/docs-examples test | |
| - name: Lint | |
| run: pnpm --filter @workspace/docs-examples lint | |
| examples-rust: | |
| name: Rust examples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: packages/docs-examples | |
| - name: Cache surfpool binary | |
| id: surfpool-cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cargo/bin/surfpool | |
| key: surfpool-${{ runner.os }}-${{ env.SURFPOOL_REF }} | |
| - name: Install surfpool | |
| if: steps.surfpool-cache.outputs.cache-hit != 'true' | |
| run: | |
| cargo install --git https://github.com/txtx/surfpool --rev ${{ | |
| env.SURFPOOL_REF }} --locked surfpool-cli | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| - name: cargo check | |
| working-directory: packages/docs-examples | |
| run: cargo check --workspace | |
| - name: Run every Rust example against surfpool | |
| run: bash packages/docs-examples/scripts/run-rust-examples.sh |