Merge pull request #22 from rainlanguage/2024-08-09-spark-dex-support #110
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: Rain CI | |
on: [push] | |
jobs: | |
router-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Install deps | |
run: nix develop -c pnpm install --frozen-lockfile | |
- name: Build ./packages/sushi | |
run: nix develop -c pnpm exec turbo run build --filter=./packages/sushi | |
- name: Lint | |
run: nix develop -c pnpm lint | |
- name: Check ./packages/sushi Types | |
run: nix develop -c pnpm exec turbo run check --filter=./packages/sushi | |
- name: Test ./packages/sushi | |
run: nix develop -c pnpm exec turbo run test --filter=./packages/sushi | |
datafetcher-test: | |
strategy: | |
fail-fast: false | |
# chains to run datafetcher on (all supported chains) | |
matrix: | |
chain: [ | |
ETHEREUM, | |
POLYGON, | |
FANTOM, | |
GNOSIS, | |
BSC, | |
ARBITRUM, | |
ARBITRUM_NOVA, | |
AVALANCHE, | |
HARMONY, | |
OKEX, | |
CELO, | |
MOONRIVER, | |
FUSE, | |
TELOS, | |
MOONBEAM, | |
OPTIMISM, | |
KAVA, | |
METIS, | |
BOBA, | |
BOBA_BNB, | |
BTTC, | |
POLYGON_ZKEVM, | |
THUNDERCORE, | |
FILECOIN, | |
HAQQ, | |
CORE, | |
LINEA, | |
BASE, | |
SCROLL, | |
ZETACHAIN, | |
CRONOS, | |
BLAST, | |
FLARE, | |
] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Install deps | |
run: nix develop -c pnpm install --frozen-lockfile | |
- name: Test DataFecther | |
run: nix develop -c pnpm exec turbo run test --filter=./protocols/route-processor | |
env: | |
CHAIN: ${{ matrix.chain }} |