refactor(core): split CLI capability adapter into domain modules #210
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: CI - Pull Request | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| gql-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm --filter @ghx-dev/core run gql:verify | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| GITHUB_TOKEN: ${{ github.token }} | |
| NX_NO_CLOUD: ${{ vars.NX_NO_CLOUD }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - uses: nrwl/nx-set-shas@v4 | |
| - run: pnpm run ci:affected | |
| - name: Detect Codecov report files (Node 24) | |
| if: ${{ always() && matrix.node-version == 24 && !cancelled() }} | |
| id: reports | |
| run: | | |
| shopt -s nullglob | |
| coverage_files=(packages/*/coverage/lcov.info) | |
| junit_files=(packages/*/test-report.junit.xml) | |
| if [ ${#coverage_files[@]} -gt 0 ]; then | |
| echo "coverage_found=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "coverage_found=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| if [ ${#junit_files[@]} -gt 0 ]; then | |
| echo "junit_found=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "junit_found=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Upload coverage to Codecov (Node 24) | |
| if: ${{ always() && matrix.node-version == 24 && !cancelled() && steps.reports.outputs.coverage_found == 'true' }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: packages/*/coverage/lcov.info | |
| flags: pr | |
| use_oidc: true | |
| fail_ci_if_error: true | |
| - name: Upload test results to Codecov (Node 24) | |
| if: ${{ always() && matrix.node-version == 24 && !cancelled() && steps.reports.outputs.junit_found == 'true' }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: packages/*/test-report.junit.xml | |
| report_type: test_results | |
| flags: pr | |
| use_oidc: true | |
| fail_ci_if_error: true | |
| audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Audit dependencies | |
| run: pnpm audit --audit-level=high | |
| e2e: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| GITHUB_TOKEN: ${{ github.token }} | |
| NX_NO_CLOUD: ${{ vars.NX_NO_CLOUD }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - name: Install opencode | |
| run: curl -fsSL https://opencode.ai/install | bash | |
| - run: pnpm install --frozen-lockfile | |
| - name: E2E tests | |
| run: pnpm run test:e2e |