feat: ga gtm integration (#75) #697
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: CI - Lint and Test | |
| on: | |
| push: | |
| branches: [develop, main] | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-and-test: | |
| name: Lint & Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x, 24.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Check code formatting | |
| run: npm run format:check | |
| - name: Run tests with coverage | |
| run: npm run test:coverage | |
| env: | |
| VITE_RPC_URL_1: ${{ secrets.VITE_RPC_URL_1 }} | |
| VITE_RPC_URL_101010: ${{ secrets.VITE_RPC_URL_101010 }} | |
| # Analytics disabled in CI — matches local .env.example defaults | |
| VITE_GTM_CONTAINER_ID: '' | |
| VITE_GA4_TAG_ID: '' | |
| VITE_PLATFORM: local |