Merge pull request #51 from datachainlab/delete-txMsg #4
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: Update Gas Snapshot on Merge | |
| on: | |
| push: | |
| branches: | |
| - develop # ToDo: change develop to main when main branch is ready | |
| paths: | |
| - 'src/**' | |
| - 'test/**' | |
| - 'foundry.toml' | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-snapshot: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '25' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate Snapshot | |
| run: npm run snapshot | |
| - name: Commit and Push changes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "chore(gas): update .gas-snapshot [skip ci]" | |
| file_pattern: .gas-snapshot | |
| branch: ${{ github.ref }} |