feat: registry metadata interface #66
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test: | |
name: Contract tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Use Bun 1.2.2 | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1.2.2 | |
- run: bun install --frozen-lockfile | |
- name: Run tests with coverage | |
run: bun --filter contracts coverage | |
- name: Generate coverage report | |
run: bunx @lcov-viewer/cli lcov -o ./contracts/coverage ./contracts/lcov.info | |
- name: Upload coverage report to artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: contracts/coverage/ | |
- name: Upload coverage report to Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
file: contracts/lcov.info | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |