Skip to content

chore(public): SDK monorepo initial migration #15

chore(public): SDK monorepo initial migration

chore(public): SDK monorepo initial migration #15

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:
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
run: yarn g:test
env:
FORK_URL: ${{ secrets.FORK_URL }}