Skip to content

add security details, migrate README details #1

add security details, migrate README details

add security details, migrate README details #1

Workflow file for this run

name: test
on:
pull_request:
branches: [main, master, staging, dev, feat/**, fix/**]
env:
FOUNDRY_PROFILE: ci
jobs:
check:
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
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
run: |
forge test -vvv
id: test
forge_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install Node modules
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "npm"
- run: npm ci
- name: Print coverage
run: forge b; forge coverage
slither:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "npm"
- uses: crytic/slither-action@v0.4.0
with:
node-version: 20