Skip to content

fix(platform): fixed visual bug in select docs #7172

fix(platform): fixed visual bug in select docs

fix(platform): fixed visual bug in select docs #7172

Workflow file for this run

name: PR checks
on:
pull_request:
env:
NX_CLOUD_DISTRIBUTED_EXECUTION: true
NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT: 1
NX_BRANCH: ${{ github.event.number || github.ref_name }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
FIREBASE_SERVICE_ACCOUNT_TOKEN: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_TOKEN }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
nx_agents:
name: Nx Cloud Agent ${{ matrix.agent }}
runs-on: ubuntu-latest
strategy:
matrix:
agent: [1, 2, 3]
node-version: [22.x]
steps:
- uses: actions/[email protected]
- name: Sleep before running CI
run: sleep $(( $RANDOM % 30 + 3 ))
- uses: ./.github/actions/nodejs
- name: set up xvfb
run: |
export DISPLAY=:99
sudo Xvfb -ac :99 -screen 0 1920x1080x24 > /dev/null 2>&1 &
- name: Start Nx Cloud Agent
run: npx nx-cloud start-agent
env:
NX_AGENT_NAME: ${{matrix.agent}}
build_test:
runs-on: ubuntu-latest
name: Run affected Build, Lint and test commands
defaults:
run:
working-directory: ${{ github.workspace }}
shell: bash
steps:
- uses: actions/[email protected]
name: Checkout
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: nrwl/[email protected]
name: Derive appropriate SHAs for base and head for nx-affected commands
with:
main-branch-name: main
- uses: ./.github/actions/nodejs
- name: Sleep before running CI
run: sleep 35
- name: Initialize the Nx Cloud distributed CI run
run: npx nx-cloud start-ci-run
- name: Format Check
run: npx nx format:check --base=origin/${{ github.event.pull_request.base.ref }} --head=HEAD
env:
NX_CLOUD_DISTRIBUTED_EXECUTION: false
- uses: wagoid/[email protected]
name: Commit lint
- name: Run Build, Lint and test commands
uses: ./.github/actions/parallel-commands
with:
parallel-commands: |
npx nx affected --target=build --base=origin/${{ github.event.pull_request.base.ref }} --head=HEAD --exclude=docs --parallel=1
npx nx run-many --target=test --all --skip-nx-cache --base=origin/${{ github.event.pull_request.base.ref }} --head=HEAD --exclude=nx-plugin --parallel=1
npx nx affected --target=lint --base=origin/${{ github.event.pull_request.base.ref }} --head=HEAD --exclude=core,platform,cx,btp --parallel=1
- name: Text workspace tags
run: npx nx run nx-plugin:test --skip-nx-cache
# e2e_test:
# runs-on: ubuntu-latest
# name: Run affected e2e commands
# defaults:
# run:
# working-directory: ${{ github.workspace }}
# shell: bash
# steps:
# - uses: actions/[email protected]
# name: Checkout
# with:
# fetch-depth: 0
# - uses: ./.github/actions/nodejs
# - run: npx nx run docs:compile:production --skip-nx-cache
# - uses: browser-actions/setup-chrome@latest
# with:
# chrome-version: stable
# - run: |
# export DISPLAY=:99
# chrome --version
# sudo Xvfb -ac :99 -screen 0 1920x1080x24 > /dev/null 2>&1 & # optional
# env:
# NX_CLOUD_DISTRIBUTED_EXECUTION: false
# - uses: FirebaseExtended/action-hosting-deploy@v0
# continue-on-error: true
# id: firebase_hosting_preview
# with:
# repoToken: '${{ secrets.GITHUB_TOKEN }}'
# firebaseServiceAccount: '${{ env.FIREBASE_SERVICE_ACCOUNT_TOKEN }}'
# projectId: fundamental-ngx-gh
# target: fundamental-ngx-gh
# expires: 3d
# - name: Test affected on firebase
# if: ${{ steps.firebase_hosting_preview.outputs.details_url }}
# run: |
# npx nx run-many --target=e2e --all --skip-nx-cache --base=origin/main --head=HEAD --parallel=2 --runInBand --baseUrl=${{ steps.firebase_hosting_preview.outputs.details_url }} --devServerTarget=""
# - name: Stopping agents # They're no longer needed, so we can stop them to avoid them going on timeout
# if: ${{ !steps.firebase_hosting_preview.outputs.details_url }}
# run: npx nx-cloud stop-all-agents
# - name: Test affected on local
# if: ${{ !steps.firebase_hosting_preview.outputs.details_url }}
# run: |
# NX_CLOUD_DISTRIBUTED_EXECUTION=false npx nx run docs:e2e-app --skip-nx-cache
stop_agents:
if: ${{ always() }}
needs:
- build_test
# - e2e_test
name: Nx Cloud - Stop Agents
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Sleep before running CI
run: sleep 25
- uses: ./.github/actions/nodejs
- name: Stop all running agents for this CI run
run: npx nx-cloud stop-all-agents