Component tests for ASP initial commit #4
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
| --- | |
| # SPDX-FileCopyrightText: (C) 2025 Intel Corporation | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: ASP Component Tests | |
| on: | |
| pull_request: | |
| types: [labeled] | |
| schedule: | |
| - cron: "0 0 * * *" # Run every day at midnight | |
| workflow_dispatch: # Run on manual trigger | |
| inputs: | |
| run-arm: | |
| description: 'Run App Service Proxy component tests' | |
| required: true | |
| type: boolean | |
| default: false | |
| emf-branch: | |
| description: 'The branch, tag or SHA to checkout EMF' | |
| required: true | |
| type: string | |
| default: 'b3c4815fe5a221d827886bba0563dacc26f2ae2a' | |
| permissions: | |
| contents: read | |
| jobs: | |
| initial-step: | |
| runs-on: ubuntu-24.04-16core-64GB # ubuntu-24.04-4core-16GB ubuntu-22.04-32core-128GB & ubuntu-24.04-16core-64GB | |
| steps: | |
| - name: Initial step | |
| run: echo "Running initial step of chrome installation" | |
| - name: Check if Chrome is installed | |
| id: chrome_check | |
| run: | | |
| if google-chrome --version; then | |
| echo "Chrome is already installed." | |
| echo "installed=true" >> $GITHUB_ENV | |
| else | |
| echo "Chrome is not installed." | |
| echo "installed=false" >> $GITHUB_ENV | |
| fi | |
| - name: Install Chrome | |
| if: env.installed == 'false' | |
| run: | | |
| echo "Installing Chrome..." | |
| sudo apt-get update | |
| sudo apt-get install -y wget | |
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| sudo dpkg -i google-chrome-stable_current_amd64.deb || sudo apt-get install -f -y | |
| rm google-chrome-stable_current_amd64.deb | |
| echo "Chrome installation complete." | |
| - name: Verify Chrome installation | |
| run: google-chrome --version | |
| component-test-asp: | |
| if: ${{ inputs.run-asp || github.event_name == 'schedule' || github.event.label.name == 'run-asp-component-tests' }} | |
| name: ASP Component Test | |
| uses: ./.github/workflows/common-comp-tests.yml | |
| with: | |
| component: app-service-proxy | |
| use-enic: true | |
| emf-branch: ${{ inputs.emf-branch || 'b3c4815fe5a221d827886bba0563dacc26f2ae2a' }} | |
| secrets: inherit # zizmor: ignore[secrets-inherit] |