fix: Most Common badge cut off on pricing cards #49
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
| # ═══════════════════════════════════════════ | |
| # REVERSO Protocol — CI Pipeline | |
| # ═══════════════════════════════════════════ | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| NODE_VERSION: "20" | |
| NPM_CONFIG_LEGACY_PEER_DEPS: "true" | |
| jobs: | |
| # ── Compile Solidity & run Hardhat tests ── | |
| contracts: | |
| name: Contracts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: npm | |
| - run: npm config set legacy-peer-deps true | |
| - run: npm ci --legacy-peer-deps | |
| - run: npx hardhat compile | |
| - run: npx hardhat test | |
| # ── Build the website ── | |
| website: | |
| name: Website | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: npm | |
| cache-dependency-path: website/package-lock.json | |
| - run: npm config set legacy-peer-deps true | |
| - run: npm ci --legacy-peer-deps | |
| working-directory: website | |
| - run: npm run build | |
| working-directory: website | |
| # ── Type-check the API ── | |
| api: | |
| name: API | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: npm | |
| cache-dependency-path: api/package-lock.json | |
| - run: npm config set legacy-peer-deps true | |
| - run: npm ci --legacy-peer-deps | |
| working-directory: api | |
| - run: npx tsc --noEmit | |
| working-directory: api |