-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (60 loc) · 2.16 KB
/
asp-component-test.yml
File metadata and controls
65 lines (60 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
# 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-asp:
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]