Merge pull request #1 from datachainlab/update-ibc-solidity #12
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: Test | |
on: [push, pull_request] | |
env: | |
SOLC_VERSION: 0.8.12 | |
jobs: | |
contract-test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: npm install | |
run: npm install | |
- name: Build and Check sizes | |
run: forge build --sizes --skip test --use solc:${{ env.SOLC_VERSION }} | |
- name: Run tests | |
run: make SOLC_VERSION=${{ env.SOLC_VERSION }} test | |
- name: Check code formatting | |
run: make check-fmt |