feat: increase test coverage #55
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: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Build | |
run: | | |
bun install | |
bun run build | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Start anvil node | |
run: anvil & | |
- name: Run tests | |
run: | | |
bun install | |
bun test | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Start anvil node | |
run: anvil & | |
- name: Run test coverage | |
run: | | |
bun install | |
bun test --coverage | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Check formatting | |
run: | | |
bun install | |
bun run prettier -c src/ |