Skip to content

#1 cleanup + add delegates #24

#1 cleanup + add delegates

#1 cleanup + add delegates #24

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: setup caching
uses: actions/cache@v3
with:
path: ${{ env.PNPM_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install
- name: lint code
run: pnpm lint && pnpm lint:types
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: build packages
run: pnpm build
- name: run tests
run: pnpm test:coverage
env:
VITE_ANVIL_FORK_URL: ${{ vars.VITE_ANVIL_FORK_URL }}
VITE_ANVIL_BLOCK_NUMBER: ${{ vars.VITE_ANVIL_BLOCK_NUMBER }}
VITE_ANVIL_SAFE_ADDRESS: ${{ vars.VITE_ANVIL_SAFE_ADDRESS }}
VITE_TEST_ADDRESS: ${{ vars.VITE_TEST_ADDRESS }}
# run coverage only on ubuntu
- name: Coveralls
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: coverallsapp/github-action@master
with:
path-to-lcov: ./coverage/lcov.info