Skip to content

chore: update toml and ci #4

chore: update toml and ci

chore: update toml and ci #4

Workflow file for this run

name: test
on:
workflow_dispatch:
push:
branches:
- "main"
pull_request:
env:
FOUNDRY_PROFILE: ci
jobs:
check:
strategy:
fail-fast: true
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: "Install NodeJS"
uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8.15
run_install: false
- name: "Restore the cached build and the node modules"
if: ${{ inputs.restore-cache }}
uses: "actions/cache/restore@v3"
with:
fail-on-cache-miss: true
key: "build-and-modules-${{ github.sha }}"
path: ${{ inputs.cache-path }}
- name: "Install the Node.js dependencies"
run: "pnpm install"
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build
- name: Run Forge tests
run: |
forge test -vvv
id: test