Skip to content

chore: separate test workflow for each package #22

chore: separate test workflow for each package

chore: separate test workflow for each package #22

Workflow file for this run

name: Run Tests for Core
on: pull_request
jobs:
test-core:
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16
- name: Checkout code
uses: actions/checkout@v4
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Build
run: npm run build:core
- name: Test
timeout-minutes: 15
run: |
nohup sh -c "anvil -p 8545" < /dev/null &
nohup sh -c "anvil -p 8546" < /dev/null &
sleep 5
npm run test:core