Adding Invariant Tests #67
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: Fuzz test smart contracts | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - QA-Test | |
| - Stable-Test | |
| - master | |
| - "v*.*.*" | |
| pull_request: | |
| branches: | |
| - QA-Test | |
| - Stable-Test | |
| - master | |
| - "v*.*.*" | |
| permissions: | |
| contents: read | |
| packages: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Use Node.js 20.15.1 | |
| uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
| with: | |
| node-version: "20.15.1" | |
| - name: NPM Login | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npm config set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: "Install Foundry" | |
| uses: "foundry-rs/foundry-toolchain@50d5a8956f2e319df19e6b57539d7e2acb9f8c1e" # v1.5.0 | |
| with: | |
| version: stable | |
| - name: Lint contracts | |
| run: npm run lint:sol | |
| - name: Compile contracts | |
| run: npm run compile | |
| - name: Fuzz test smart contracts | |
| run: npm run test:fuzz | |
| - name: Invariant test smart contracts | |
| run: npm run test:invariant |