Skip to content

Run Tests and Update Docs #6

Run Tests and Update Docs

Run Tests and Update Docs #6

Workflow file for this run

name: test
on: workflow_dispatch
env:
FOUNDRY_PROFILE: ci
permissions:
contents: read
pages: write
id-token: write
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: Run Forge build
run: |
forge --version
forge build --sizes
id: build
- name: Run Forge tests
env:
TEST_SIGNER_PRIVATE_KEY: ${{ secrets.TEST_SIGNER_PRIVATE_KEY }}
run: |
forge test -vvv
id: test
- name: Build Documentation (mdBook)
run: forge doc --build
- name: Publish Documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book