Merge branch 'dargon789-master' of https://github.com/Dargon789/seque… #1341
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
| on: [push] | |
| name: tests | |
| permissions: | |
| contents: read | |
| jobs: | |
| install: | |
| name: Install dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install-dependencies | |
| build: | |
| name: Run build | |
| runs-on: ubuntu-latest | |
| needs: [install] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install-dependencies | |
| - run: pnpm clean | |
| - run: pnpm build | |
| - run: pnpm typecheck | |
| - run: pnpm lint | |
| tests: | |
| name: Run all tests | |
| runs-on: ubuntu-latest | |
| needs: [install] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install-dependencies | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| # Fork latest mainnet state | |
| - name: Start Anvil in background | |
| run: anvil --fork-url https://reth-ethereum.ithaca.xyz/nodes.sequence.app/rpc & | |
| - run: pnpm test | |
| # NOTE: if you'd like to see example of how to run | |
| # tests per package in parallel, see 'v2' branch | |
| # .github/workflows/tests.yml | |
| # coverage: | |
| # name: Run coverage | |
| # runs-on: ubuntu-latest | |
| # needs: [install] | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - uses: actions/setup-node@v4 | |
| # with: | |
| # node-version: 20 | |
| # - uses: actions/cache@v4 | |
| # id: pnpm-cache | |
| # with: | |
| # path: | | |
| # node_modules | |
| # */*/node_modules | |
| # key: ${{ runner.os }}-install-${{ hashFiles('**/package.json', '**/pnpm.lock') }} | |
| # - run: pnpm dev && (pnpm coverage || true) | |
| # - uses: codecov/codecov-action@v1 | |
| # with: | |
| # fail_ci_if_error: true | |
| # verbose: true | |
| # directory: ./coverage |