Add Unit Test CI to packages/contracts
for Early Detection of Code Breakages
#1
Workflow file for this run
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: Contracts CI | |
on: | |
push: | |
paths: | |
- 'packages/contracts/**/*.sol' | |
pull_request: | |
paths: | |
- 'packages/contracts/**/*.sol' | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/contracts | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Check Solidity formatting | |
id: format | |
run: make format_check | |
- name: Execute Unit Test | |
run: make test |