chore: introduced check for emitting event correctly #2391
Workflow file for this run
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: Lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "contracts/**" | |
| - ".github/**" | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "contracts/**" | |
| - ".github/**" | |
| jobs: | |
| run-lint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| persist-credentials: false | |
| - name: reconfigure git to use HTTP authentication | |
| run: > | |
| git config --global url."https://github.com/".insteadOf | |
| ssh://git@github.com/ | |
| - name: install foundry | |
| uses: onbjerg/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| - name: install nodejs | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: cache node_modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ./node_modules | |
| key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
| - name: install node dependencies | |
| run: yarn | |
| - name: run lint checks | |
| run: yarn lint:check |