Add P256 precompile testing scripts and gas measurement contract #858
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: Tests | |
| on: [push, pull_request] | |
| jobs: | |
| pre_job: | |
| continue-on-error: true | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: "read" | |
| outputs: | |
| should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
| steps: | |
| - id: skip_check | |
| uses: MetaMask/skip-duplicate-actions@v5 | |
| with: | |
| concurrent_skipping: same_content_newer | |
| check-ffi: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v2 | |
| - name: Search for 'ffi' in foundry.toml | |
| run: | | |
| if grep -q "ffi" "foundry.toml"; then | |
| echo "Remove ffi configuration from the foundry.toml" | |
| exit 1 | |
| fi | |
| tests: | |
| needs: pre_job | |
| if: needs.pre_job.outputs.should_skip != 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install Foundry | |
| uses: MetaMask/foundry-toolchain@v1 | |
| with: | |
| version: stable | |
| - name: Run Forge Install | |
| run: forge install | |
| - name: Check contract sizes | |
| run: forge build --sizes --skip test --skip script --optimize true | |
| - name: Run tests | |
| run: forge test -vvv | |
| env: | |
| LINEA_RPC_URL: ${{ secrets.LINEA_RPC_URL }} |