Skip to content

Merge pull request #249 from rainlanguage/2024-11-06-node-error-report #1196

Merge pull request #249 from rainlanguage/2024-11-06-node-error-report

Merge pull request #249 from rainlanguage/2024-11-06-node-error-report #1196

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