Bump actions/checkout from 4 to 6 #22
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: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| rust: | |
| name: cargo test (host targets) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo check -p lien-hook-runtime | |
| - run: cargo test -p lien-hook-runtime | |
| - run: cargo check -p lien-hook-library | |
| - run: cargo test -p lien-hook-library | |
| manifests: | |
| name: manifest vs README | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: check libs advertised in README live in some Cargo.toml or package.json | |
| shell: bash | |
| run: | | |
| set -e | |
| checks=( | |
| "Marginfi:marginfi-client-v2" | |
| "Kamino:klend-sdk" | |
| "Solend:solend-sdk" | |
| "Anchor 0.31:anchor-lang" | |
| ) | |
| for entry in "${checks[@]}"; do | |
| label="${entry%%:*}" | |
| dep="${entry##*:}" | |
| if grep -qi "$label" README.md; then | |
| if ! grep -rqE "$dep" packages/ --include="Cargo.toml" --include="package.json"; then | |
| echo "::error::README mentions '$label' but no manifest declares '$dep'" | |
| exit 1 | |
| fi | |
| fi | |
| done | |
| echo "manifest OK" | |