fix(home): zone de click sur La hiérarchie des textes
#12185
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: Code quality | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| pull_request: | |
| concurrency: | |
| cancel-in-progress: true | |
| group: quality-${{ github.ref }} | |
| jobs: | |
| build: | |
| name: Build | |
| environment: build-preproduction | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .node-version | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: Install dependencies | |
| run: | | |
| pnpm install --frozen-lockfile | |
| - name: Build code | |
| run: | | |
| pnpm build | |
| env: | |
| NEXT_PUBLIC_ES_INDEX_PREFIX: ${{ secrets.NEXT_PUBLIC_ES_INDEX_PREFIX }} | |
| ELASTICSEARCH_TOKEN_API: ${{ secrets.ELASTICSEARCH_TOKEN_API }} | |
| ELASTICSEARCH_URL: ${{ secrets.ELASTICSEARCH_URL }} | |
| - name: Cache build | |
| uses: actions/cache@v4 | |
| with: | |
| path: ./* | |
| key: ${{ github.sha }} | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| repositories: | |
| [ | |
| "@cdt/frontend", | |
| "@socialgouv/modeles-social", | |
| "@socialgouv/cdtn-utils", | |
| ] | |
| steps: | |
| - uses: actions/cache@v4 | |
| name: Restore build | |
| with: | |
| path: ./* | |
| key: ${{ github.sha }} | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .node-version | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: Lint ${{ matrix.repositories }} | |
| run: | | |
| pnpm --filter ${{ matrix.repositories }} lint --quiet | |
| format: | |
| name: Code formatter checker | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| repositories: | |
| [ | |
| "@cdt/frontend", | |
| "@socialgouv/modeles-social", | |
| "@socialgouv/cdtn-utils", | |
| ] | |
| steps: | |
| - uses: actions/cache@v4 | |
| name: Restore build | |
| with: | |
| path: ./* | |
| key: ${{ github.sha }} | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .node-version | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: Code formatter checker for ${{ matrix.repositories }} | |
| run: | | |
| pnpm --filter ${{ matrix.repositories }} format:check | |
| type-check: | |
| name: Check typescript types | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| repositories: | |
| [ | |
| "@cdt/frontend", | |
| "@socialgouv/modeles-social", | |
| "@socialgouv/cdtn-utils", | |
| ] | |
| steps: | |
| - uses: actions/cache@v4 | |
| name: Restore build | |
| with: | |
| path: ./* | |
| key: ${{ github.sha }} | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .node-version | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: Type-check ${{ matrix.repositories }} | |
| run: | | |
| pnpm --filter ${{ matrix.repositories }} type-check | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| repositories: ["@cdt/frontend", "@socialgouv/modeles-social"] | |
| steps: | |
| - name: Configure sysctl limits | |
| run: | | |
| sudo swapoff -a | |
| sudo sysctl -w vm.swappiness=1 | |
| sudo sysctl -w fs.file-max=262144 | |
| sudo sysctl -w vm.max_map_count=262144 | |
| - name: Runs Elasticsearch | |
| uses: elastic/elastic-github-actions/elasticsearch@master | |
| with: | |
| stack-version: 8.13.4 | |
| security-enabled: false | |
| - name: Verify Elasticsearch connection | |
| run: | | |
| curl -fsSL "http://localhost:9200/_cat/health?h=status" | |
| - name: Restore build | |
| uses: actions/cache@v4 | |
| with: | |
| path: ./* | |
| key: ${{ github.sha }} | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .node-version | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: Test ${{ matrix.repositories }} | |
| run: | | |
| pnpm --filter ${{ matrix.repositories }} test | |
| env: | |
| ELASTICSEARCH_URL: http://localhost:9200 |