feat: Add tech mode to Min Gas calculator #36
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: Frontend Lint & Format | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| paths: | |
| - 'frontend/src/**/*.js' | |
| - 'frontend/src/**/*.jsx' | |
| - 'frontend/src/**/*.css' | |
| - 'frontend/package.json' | |
| - 'frontend/package-lock.json' | |
| - 'frontend/tailwind.config.js' | |
| - '.github/workflows/frontend-lint-format.yml' | |
| workflow_dispatch: | |
| # Cancel in-progress runs for the same PR/branch when a new push occurs | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-format: | |
| name: Lint and Format | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Check formatting | |
| run: npm run format:check | |
| - name: Run linter | |
| run: npm run lint:ci |