diff --git a/.github/workflows/solidity-contracts-test.yml b/.github/workflows/solidity-contracts-test.yml new file mode 100644 index 00000000..2b3794a2 --- /dev/null +++ b/.github/workflows/solidity-contracts-test.yml @@ -0,0 +1,43 @@ +name: Solidity Contracts tests + +on: + pull_request: + branches: + - "**" + paths: + - "contracts/evm/**" + - ".github/workflows/solidity-cov.yml" + push: + branches: + - "**" + +env: + FOUNDRY_PROFILE: ci + +jobs: + check: + strategy: + fail-fast: true + + name: Foundry project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly + + - name: Run Forge build + run: | + forge --version + forge build --sizes + id: build + + - name: Run Forge tests + run: | + forge test -vvv + id: test