Skip to content

feat(v4-sdk): add comment #582

feat(v4-sdk): add comment

feat(v4-sdk): add comment #582

name: "Code Quality Checks"
on:
workflow_call:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build-and-test:
name: Lint, Build, and Test
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
defaults:
run:
working-directory: ./
steps:
- name: ✅ Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
submodules: "recursive"
fetch-depth: 2
- name: 💽 Node and Caching
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7
with:
cache: yarn
node-version: 18
- name: 📥 yarn install
shell: bash
working-directory: ./
run: |
yarn --immutable
env:
# CI optimizations. Overrides yarnrc.yml options (or their defaults) in the CI action.
YARN_ENABLE_GLOBAL_CACHE: "false" # Use local cache folder to keep downloaded archives
YARN_NM_MODE: "hardlinks-local" # Hardlinks-local reduces io / node_modules size
HUSKY: "0" # By default do not run HUSKY install
- name: 🔬 Lint
run: yarn g:lint
- name: 🏗 Build
run: yarn g:build
- name: 🪨 Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: 🧪 Testing
uses: nick-fields/retry@7d4a37704547a311dbb66ebdf5b23ec19374a767
env:
FORK_URL: ${{ secrets.FORK_URL }}
FORK_URL_8453: ${{ secrets.FORK_URL_8453 }}
with:
timeout_minutes: 20
retry_wait_seconds: 2
max_attempts: 3
command: yarn g:test