Feat/stx validator #76
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: Foundry Tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: stable | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.17.1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: forge build | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| - name: Run node-paymaster tests | |
| run: forge test --match-path 'test/unit-and-e2e/node-paymaster/**' --isolate | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| RPC_84532: https://sepolia.base.org | |
| RPC_11155111_TEST: https://0xrpc.io/sep | |
| TESTNET_PRIVATE_KEY: ${{ secrets.TESTNET_PRIVATE_KEY }} | |
| - name: Run all other tests | |
| run: forge test --no-match-path 'test/unit-and-e2e/node-paymaster/**' | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| RPC_84532: https://sepolia.base.org | |
| RPC_11155111_TEST: https://0xrpc.io/sep | |
| TESTNET_PRIVATE_KEY: ${{ secrets.TESTNET_PRIVATE_KEY }} |