chore(deps): bump @angular/platform-browser from 18.0.3 to 19.0.5 #6806
Workflow file for this run
This file contains 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: PR checks | |
on: | |
pull_request: | |
env: | |
NX_CLOUD_DISTRIBUTED_EXECUTION: true | |
NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT: 8 | |
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, 4, 5, 6, 7, 8] | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- 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/checkout@v4.2.2 | |
name: Checkout | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: nrwl/nx-set-shas@v4.1.2 | |
name: Derive appropriate SHAs for base and head for nx-affected commands | |
with: | |
main-branch-name: main | |
- uses: ./.github/actions/nodejs | |
- 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/commitlint-github-action@v6.1.2 | |
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=3 | |
npx nx run-many --target=test --all --skip-nx-cache --base=origin/${{ github.event.pull_request.base.ref }} --head=HEAD --exclude=nx-plugin --parallel=3 | |
npx nx affected --target=lint --base=origin/${{ github.event.pull_request.base.ref }} --head=HEAD --exclude=core,platform,cx,btp --parallel=3 | |
- 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/checkout@v4.2.2 | |
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/checkout@v4.2.2 | |
- uses: ./.github/actions/nodejs | |
- name: Stop all running agents for this CI run | |
run: npx nx-cloud stop-all-agents |