Skip to content

Update git-clean.yaml #2081

Update git-clean.yaml

Update git-clean.yaml #2081

name: Standard Test
on: [push]
concurrency:
group: ${{ github.ref }}-rainix
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
unit-test:
permissions:
id-token: write
contents: write
name: unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install Nix 1/2
uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
- name: Install Nix 2/2
uses: DeterminateSystems/flakehub-cache-action@main
- 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
permissions:
id-token: write
contents: write
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