docs: update introduction #717
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [pull_request] | |
env: | |
FOUNDRY_PROFILE: ci | |
jobs: | |
contracts: | |
name: Contracts | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run forge fmt | |
run: | | |
forge --version | |
forge fmt --check | |
id: fmt | |
- name: Run forge build | |
run: | | |
forge build --sizes --deny-warnings | |
id: build | |
- name: Run forge tests | |
run: | | |
forge test -vvv --deny-warnings | |
id: test | |
- name: Run forge docs | |
run: | | |
forge doc --out docs/docs/contracts | |
python3 docs/scripts/forge_doc_reformat.py | |
- name: Commit forge docs | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "chore: Generate Foundry docs" | |
file_pattern: "./docs/" | |
sdk: | |
name: SDK | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./sdk | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
registry-url: "https://registry.npmjs.org" | |
always-auth: true | |
- run: npm ci | |
- run: npx prettier --check {examples,src,test} | |
- run: npm run lint | |
- name: Run tests | |
run: npm test |