Audited Release v1.0.0 w/ full passing tests. #157
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: Unruggable Gateways CI | |
on: [push] | |
defaults: | |
run: | |
working-directory: ./ | |
jobs: | |
test: | |
name: Test v2 on self-hosted | |
runs-on: self-hosted | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Clear caches | |
run: | | |
rm -rf ~/.npm | |
rm -rf ~/.bun | |
rm -rf node_modules | |
- name: Pull & update submodules recursively | |
run: git submodule update --init --recursive | |
- name: Install Dependencies | |
run: bun install | |
- name: Create env file | |
run: | | |
echo "ALCHEMY_KEY=${{ secrets.ALCHEMY_KEY }}" > .env | |
echo "INFURA_KEY=${{ secrets.INFURA_KEY }}" >> .env | |
echo "IS_CI=true" >> .env | |
cat .env | |
- name: Build | |
run: forge build | |
- name: Test Components | |
run: bun run test-components | |
- name: Test Gateways | |
run: bun test test/gateway/base.test.ts --timeout 25000 | |
lint: | |
name: Lint v2 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: bun install | |
- name: Lint | |
run: bun run lint |