docs: updating supported chains #9561
This file contains hidden or 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: Run checks on Pull Requests | |
on: | |
pull_request: | |
jobs: | |
changes: | |
name: Detect Changes | |
runs-on: ubuntu-latest | |
outputs: | |
docs: ${{ steps.filter.outputs.docs }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
docs: | |
- 'docs/**/*.mdx' | |
enforce_title: | |
name: Enforce PR Title Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout files" | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ALCHEMY_BOT_PAT }} | |
fetch-depth: "0" | |
submodules: "recursive" | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Use commitlint to check PR title | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
run: echo "$TITLE" | yarn commitlint | |
preview: | |
name: Generate Documentation Preview | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
pull-requests: write | |
outputs: | |
preview-url: ${{ steps.preview.outputs.preview-url }} | |
steps: | |
- name: Checkout aa-sdk | |
uses: actions/checkout@v4 | |
- name: Generate Documentation Preview | |
id: preview | |
uses: ./.github/actions/preview-fern-docs | |
with: | |
github-token: ${{ github.token }} | |
fern-token: ${{ secrets.FERN_TOKEN }} | |
ref: ${{ github.head_ref }} | |
lint_docs: | |
name: Lint Documentation | |
runs-on: ubuntu-latest | |
needs: changes | |
if: ${{ needs.changes.outputs.docs == 'true' }} | |
steps: | |
- name: "Checkout files" | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ALCHEMY_BOT_PAT }} | |
fetch-depth: "0" | |
submodules: "recursive" | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '22' | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Install Vale | |
run: | | |
wget -O vale.tar.gz https://github.com/errata-ai/vale/releases/download/v3.12.0/vale_3.12.0_Linux_64-bit.tar.gz | |
tar -xzf vale.tar.gz | |
sudo mv vale /usr/local/bin/ | |
vale --version | |
- name: Run documentation linting | |
run: yarn lint:docs | |
check_broken_links: | |
name: Check Broken Links | |
runs-on: ubuntu-latest | |
needs: changes | |
if: ${{ needs.changes.outputs.docs == 'true' }} | |
steps: | |
- name: "Checkout files" | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ALCHEMY_BOT_PAT }} | |
fetch-depth: "0" | |
submodules: "recursive" | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '22' | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Install Lychee | |
run: | | |
wget -O lychee.tar.gz https://github.com/lycheeverse/lychee/releases/download/lychee-v0.20.1/lychee-x86_64-unknown-linux-gnu.tar.gz | |
tar -xzf lychee.tar.gz | |
sudo mv lychee /usr/local/bin/ | |
lychee --version | |
- name: Check for broken links | |
run: yarn docs:broken-links | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.ALCHEMY_BOT_PAT }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
steps: | |
- name: "Checkout files" | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ALCHEMY_BOT_PAT }} | |
fetch-depth: "0" | |
submodules: "recursive" | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build eslint plugin | |
run: | | |
cd templates/eslint && yarn build | |
- uses: reviewdog/action-setup@v1 | |
with: | |
reviewdog_version: latest | |
- name: Run eslint with reviewdog | |
run: | | |
npx --no-install -c "eslint -f=rdjson ." | reviewdog -f=rdjson -reporter=github-pr-review -filter-mode=added -tee | |
- name: Run eslint for errors | |
run: yarn lint:check | |
build_and_lint_and_test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
API_KEY: ${{ secrets.API_KEY }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
steps: | |
- name: "Checkout files" | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ALCHEMY_BOT_PAT }} | |
fetch-depth: "0" | |
submodules: "recursive" | |
- name: Setup | |
uses: ./.github/actions/setup | |
# using your own fork url avoids getting rate limited by the public api | |
# later we'll look at deploying everything we need directly to anvil so | |
# so we don't need a fork url | |
- name: Conditionally set fork url | |
if: ${{ env.API_KEY != '' }} | |
run: echo "VITEST_SEPOLIA_FORK_URL=https://eth-sepolia.g.alchemy.com/v2/${{ env.API_KEY }}" >> $GITHUB_ENV | |
- name: Set up Rundler | |
uses: jaxxstorm/action-install-gh-release@v1.12.0 | |
with: | |
repo: alchemyplatform/rundler | |
platform: linux | |
tag: v0.8.2 | |
cache: enable | |
- name: Build Libraries | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
JAVA_OPTS: "-XX:MaxHeapSize=6g" | |
run: yarn build:libs | |
- name: Unit Test | |
run: yarn test:ci | |
- name: Typecheck Test | |
run: yarn test:typecheck | |
build_ios: | |
name: Build iOS | |
runs-on: macos-14 | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
API_KEY: ${{ secrets.API_KEY }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
steps: | |
- name: "Checkout files" | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ALCHEMY_BOT_PAT }} | |
fetch-depth: "0" | |
submodules: "recursive" | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Install cocoapods | |
working-directory: account-kit/rn-signer/example/ios | |
run: | | |
pod install | |
env: | |
NO_FLIPPER: 1 | |
- name: Build example for iOS | |
run: | | |
yarn turbo run build:ios |