Skip to content

Diamond implementation #62

Diamond implementation

Diamond implementation #62

Workflow file for this run

name: Coverage
on:
workflow_dispatch:
push:
branches:
- main
- develop
- edit-proposal
paths:
- pkg/contracts/**/*
- foundry.toml
- .github/workflows/coverage.yml
pull_request:
paths:
- pkg/contracts/**/*
- foundry.toml
- .github/workflows/coverage.yml
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: false
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.14.0
run_install: false
- name: Init required submodules
run: git submodule update --init --recursive --depth 1 --jobs 4
- name: Run coverage
run: pnpm --dir pkg/contracts run coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: pkg/contracts/lcov.info
fail_ci_if_error: true