Skip to content

Feat/git workflows

Feat/git workflows #37

Workflow file for this run

name: test
on:
workflow_dispatch:
pull_request:
env:
FOUNDRY_PROFILE: ci
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn
- uses: onbjerg/foundry-toolchain@v1
- name: Format
run: forge fmt
- name: Test
run: forge test --ffi -vvv
- name: Snapshot
run: forge snapshot
- name: Document
run: forge doc --build
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "style, document & snapshot"