SM improvements, adding explicit interface \o/ #5
This file contains hidden or 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: SmartContract Tests | |
| on: | |
| push: | |
| branches: [ "**" ] | |
| paths: | |
| - "smartcontract/**" | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - "smartcontract/**" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./smartcontract | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| cache: "npm" | |
| cache-dependency-path: "./smartcontract/package-lock.json" | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Show Forge version | |
| run: | | |
| forge --version | |
| - name: Run Forge fmt | |
| run: | | |
| forge fmt --check | |
| id: fmt | |
| - name: Run Forge build | |
| run: | | |
| forge build --sizes | |
| id: build | |
| - name: Run Forge tests | |
| run: | | |
| forge test -vvv | |
| id: test | |
| # - name: Install moreutils | |
| # run: sudo apt-get update && sudo apt-get install -y moreutils | |
| # | |
| # - name: Install dependencies | |
| # run: npm ci | |
| # | |
| # - name: Check requirements | |
| # run: make check-req | |
| # | |
| # - name: Run local tests | |
| # run: ./test-contract-local.sh |