REVM Uniswap V2 Periphery #43
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: REVM Uniswap V2 Periphery | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'migration/revm/uniswap-v2-periphery/**' | |
| - 'versions.yml' | |
| pull_request: | |
| paths: | |
| - 'migration/revm/uniswap-v2-periphery/**' | |
| - 'versions.yml' | |
| workflow_dispatch: | |
| jobs: | |
| guard: | |
| if: github.repository == 'polkadot-developers/polkadot-cookbook' | |
| runs-on: ubuntu-latest | |
| outputs: | |
| should-run: ${{ steps.check.outputs.should-run }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - id: check | |
| uses: ./.github/actions/check-version-keys | |
| with: | |
| event-name: ${{ github.event_name }} | |
| base-sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }} | |
| head-sha: ${{ github.sha }} | |
| test: | |
| needs: guard | |
| if: needs.guard.outputs.should-run == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Load versions | |
| id: versions | |
| run: | | |
| echo "POLKADOT_SDK_VERSION=$(yq '.polkadot_sdk.release_tag' versions.yml)" >> $GITHUB_OUTPUT | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Setup pallet-revive dev node | |
| uses: ./.github/actions/setup-revive-dev-node | |
| with: | |
| polkadot-sdk-version: ${{ steps.versions.outputs.POLKADOT_SDK_VERSION }} | |
| - name: Install npm dependencies | |
| run: | | |
| cd migration/revm/uniswap-v2-periphery | |
| npm ci | |
| - name: Run tests | |
| run: | | |
| cd migration/revm/uniswap-v2-periphery | |
| npm test | |
| timeout-minutes: 30 |