Centreon Monitoring Agent Windows robot test #44
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: Centreon Monitoring Agent Windows robot test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
jobs: | |
get-version: | |
uses: ./.github/workflows/get-version.yml | |
with: | |
version_file: CMakeLists.txt | |
build-agent: | |
needs: [get-version] | |
runs-on: windows-latest | |
steps: | |
- name: distrib availables | |
run: wsl --list --online | |
- name: install debian | |
uses: Vampire/setup-wsl@v3 | |
with: | |
distribution: Debian | |
use-cache: 'true' | |
# update: 'true' | |
# additional-packages: | |
# mariadb-server | |
# libmariadb3 | |
# librrd8 | |
# liblua5.3 | |
# python3 | |
# python3-pip | |
# rrdtool | |
- name: check install | |
run: | | |
Write-Host installed | |
wsl --list --verbose | |
- name: Checkout sources | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: calc current path | |
run: | | |
$current_dir = (pwd).Path | |
$wsl_path = "/mnt/" + $current_dir.SubString(0,1).ToLower() + "/" + $current_dir.SubString(3).replace('\','/') | |
[System.Environment]::SetEnvironmentVariable("WSL_COLLECT_DIR", $wsl_path) | |
Write-Host "collect is there: " $env:WSL_COLLECT_DIR | |
wsl cd $env:WSL_COLLECT_DIR `&`& .github/scripts/collect-setup-database.sh mariadb | |
- name: install mariadb | |
run: | | |
wsl cd $env:WSL_COLLECT_DIR `&`& .github/scripts/collect-setup-database.sh mariadb | |
- name: ps | |
shell: wsl-bash {0} | |
run: ps -ef | |
# - name: docker login | |
# shell: wsl-bash {0} | |
# env: | |
# DOCKER_REGISTRY_ID: ${{ secrets.DOCKER_REGISTRY_ID }} | |
# DOCKER_REGISTRY_PASSWD: ${{ secrets.DOCKER_REGISTRY_PASSWD }} | |
# run: docker login -u $env:DOCKER_REGISTRY_ID -p $env:DOCKER_REGISTRY_PASSWD ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }} | |
# - name: Checkout sources | |
# uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
# - name: Login to Registry | |
# uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0 | |
# with: | |
# registry: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }} | |
# username: ${{ secrets.DOCKER_REGISTRY_ID }} | |
# password: ${{ secrets.DOCKER_REGISTRY_PASSWD }} | |
# - name: Test in container | |
# uses: ./.github/actions/runner-docker | |
# with: | |
# registry_url: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }} | |
# script_name: ./.github/scripts/collect-test-robot-with-windows.sh | |
# image_name: centreon-collect-alma9-test | |
# image_version: ${{ needs.get-version.outputs.test_img_version }} | |