feat(svm): fill with across plus and codama test #6133
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: Checks | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: | |
| - 20 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: "Use Node ${{ matrix.node }}" | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "${{ matrix.node }}" | |
| cache: yarn | |
| - name: Extract Solana versions | |
| uses: solana-developers/github-actions/extract-versions@v0.2.5 | |
| id: versions | |
| - name: Setup Anchor & Solana | |
| uses: solana-developers/github-actions/setup-all@v0.2.5 | |
| with: | |
| anchor_version: ${{ steps.versions.outputs.anchor_version }} | |
| solana_version: ${{ steps.versions.outputs.solana_version }} | |
| node_version: 20 | |
| - name: Install Cargo toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: nightly | |
| profile: minimal | |
| components: rustc, rustfmt | |
| - name: Install packages | |
| run: yarn install --frozen-lockfile | |
| - name: Lint js | |
| shell: bash | |
| run: yarn lint-js | |
| - name: Lint solidity | |
| shell: bash | |
| run: yarn lint-solidity | |
| - name: Lint rust | |
| shell: bash | |
| run: yarn lint-rust | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: | |
| - 20 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: "Use Node ${{ matrix.node }}" | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "${{ matrix.node }}" | |
| cache: yarn | |
| - name: Extract Solana versions | |
| uses: solana-developers/github-actions/extract-versions@v0.2.5 | |
| id: versions | |
| - name: Setup Anchor & Solana | |
| uses: solana-developers/github-actions/setup-all@v0.2.5 | |
| with: | |
| anchor_version: ${{ steps.versions.outputs.anchor_version }} | |
| solana_version: ${{ steps.versions.outputs.solana_version }} | |
| node_version: 20 | |
| - name: Install Cargo toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| profile: minimal | |
| components: rustc | |
| - name: Cache Cargo dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install packages | |
| run: yarn install --frozen-lockfile | |
| - name: Build | |
| run: yarn build | |
| - name: Test evm-hardhat | |
| shell: bash | |
| run: yarn test-evm | |
| - name: Test svm-anchor | |
| shell: bash | |
| run: yarn test-svm | |
| forge: | |
| name: Forge | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: | |
| - 20 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: "Use Node ${{ matrix.node }}" | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "${{ matrix.node }}" | |
| cache: yarn | |
| - name: Extract Solana versions | |
| uses: solana-developers/github-actions/extract-versions@v0.2.5 | |
| id: versions | |
| - name: Setup Anchor & Solana | |
| uses: solana-developers/github-actions/setup-all@v0.2.5 | |
| with: | |
| anchor_version: ${{ steps.versions.outputs.anchor_version }} | |
| solana_version: ${{ steps.versions.outputs.solana_version }} | |
| node_version: 20 | |
| - name: Install packages | |
| run: yarn install --frozen-lockfile | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Install forge dependencies | |
| run: forge install | |
| - name: Inspect storage layouts | |
| run: ./scripts/checkStorageLayout.sh | |
| - name: Test evm-foundry | |
| run: forge test --match-path test/evm/foundry/local/**/*.t.sol |