[SDK] Fix invalid recipient
issue when deploy built-in contracts
#7318
Workflow file for this run
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: Build, Lint & Test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
types: [opened, synchronize] | |
# trigger on merge group as well (merge queue) | |
merge_group: | |
types: [checks_requested] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
# To use Remote Caching, uncomment the next lines and follow the steps below. | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TW_SECRET_KEY: ${{ secrets.TW_SECRET_KEY }} | |
jobs: | |
build: | |
timeout-minutes: 15 | |
name: Build | |
runs-on: ubuntu-latest-16 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 25 | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install | |
uses: ./.github/composite-actions/install | |
- run: pnpm build | |
# We use week in the turbo cache key to keep the cache from infinitely growing | |
- id: get-week | |
run: echo "WEEK=$(date +%U)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
timeout-minutes: 5 | |
id: cache-build | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }} | |
lint: | |
timeout-minutes: 15 | |
name: Lint Packages | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
check-latest: true | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/cache@v3 | |
timeout-minutes: 5 | |
id: restore-build | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }} | |
- run: pnpm lint | |
test: | |
timeout-minutes: 15 | |
name: Unit Tests | |
runs-on: ubuntu-latest-16 | |
needs: build | |
steps: | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
check-latest: true | |
# we use bun for some test suites | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/cache@v3 | |
timeout-minutes: 5 | |
id: restore-build | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }} | |
- run: pnpm test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./packages/sdk/coverage/evm/lcov.info | |
e2e: | |
timeout-minutes: 15 | |
name: E2E Tests | |
runs-on: ubuntu-latest-16 | |
needs: build | |
steps: | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
check-latest: true | |
# we use bun for some test suites | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/cache@v3 | |
timeout-minutes: 5 | |
id: restore-build | |
with: | |
path: ./* | |
key: ${{ github.sha }}-${{ github.run_number }} | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Run e2e tests | |
run: pnpm e2e | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
CLI_E2E_API_KEY: ${{ secrets.CLI_E2E_API_KEY }} |