Merge branch 'master' into 2024-11-06-node-error-report #1189
This file contains 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: Standard Test | |
on: [push] | |
jobs: | |
unit-test: | |
name: unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Prepare Sushi Lib | |
run: ./prep-sushi.sh | |
- name: Install Dependencies | |
run: nix develop -c npm install | |
- name: Lint | |
run: nix develop -c npm run lint | |
- name: Run Tests | |
run: nix develop -c npm run unit-test | |
e2e-test: | |
name: e2e fork test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chain: [POLYGON, ARBITRUM, ETH, FLARE, BSC, BASE, LINEA, MATCHAIN] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Prepare Sushi Lib | |
run: ./prep-sushi.sh | |
- name: Install Dependencies | |
run: nix develop -c npm install | |
- name: Set Chain Rpc Key | |
run: echo "RPC=CI_DEPLOY_${{ matrix.chain }}_RPC_URL" >> $GITHUB_ENV | |
- name: Run Tests | |
run: TEST_${{ matrix.chain }}_RPC=${{ secrets[env.RPC] }} nix develop -c npm run e2e-test |