test(chain): double check validate signature with viem #717
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
| # CI for src folder | |
| name: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| paths: | |
| - 'test/**' | |
| - 'src/**' | |
| - 'config/**' | |
| # - '.github/**' | |
| - 'package.json' | |
| - 'yarn.lock' | |
| push: | |
| branches: | |
| - '**' | |
| paths: | |
| - 'test/**' | |
| - 'src/**' | |
| - 'config/**' | |
| - '.github/**' | |
| - 'package.json' | |
| - 'yarn.lock' | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-22.04 | |
| steps: | |
| - run: sudo apt install -y xvfb | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22 | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn test --pool=forks # --pool=forks fixes "Segmentation fault" error in CI | |
| - run: yarn build | |
| # disable hosts we shouldn't use | |
| - run: sudo echo "255.255.255.255 cloudflare-ipfs.com" | sudo tee -a /etc/hosts | |
| - run: sudo echo "255.255.255.255 pubsubprovider.xyz" | sudo tee -a /etc/hosts | |
| # installing the browsers shouldn't be needed, but doesn't work without it for some reason | |
| - run: yarn playwright install | |
| - run: yarn test:server & yarn test:server:wait-on | |
| - run: CHROME_BIN=$(which chromium-browser) yarn test:e2e:mock | |
| - run: DEBUG="plebbit-js:*,plebbit-react-hooks:*" CHROME_BIN=$(which chromium-browser) yarn test:e2e:chrome | |
| - run: DEBUG="plebbit-js:*,plebbit-react-hooks:*" FIREFOX_BIN=$(which firefox) yarn test:e2e:firefox | |
| - run: CHROME_BIN=$(which chromium-browser) yarn test:e2e:mock-content |