Skip to content

feat(incentives): Add raffle support to ERC20Incentive #24

feat(incentives): Add raffle support to ERC20Incentive

feat(incentives): Add raffle support to ERC20Incentive #24

Workflow file for this run

name: Run Tests and Update Docs
on:
push:
branches:
- main
env:
FOUNDRY_PROFILE: ci
jobs:
check:
name: Build and Test
runs-on: ubuntu-latest
strategy:
fail-fast: true
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
docs:
needs: check
name: Deploy Docs
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Build Documentation (mdBook)
run: forge doc --build
- name: Publish Documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs/book
token: ${{ secrets.GITHUB_TOKEN }}