diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cf577cb39..c6cefb283 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,5 +1,5 @@ # This is a basic workflow - +# cspell: ignore winget name: ci # Controls when the action will run. Triggers the workflow on push or pull request @@ -11,6 +11,8 @@ on: - "v*.*" pull_request: branches: ["main", "devel/*"] + pull_request_target: + branches: ["main", "devel/*"] schedule: - cron: "0 0 * * *" workflow_dispatch: @@ -67,37 +69,49 @@ jobs: name: - docs include: - - name: lint - task-name: lint - os: ubuntu-22.04 - env: - SKIP_PODMAN: 1 - SKIP_DOCKER: 1 - - - name: test (linux) - task-name: test - - - name: test (macos) - task-name: test - os: macos-13-large - env: - SKIP_PODMAN: 1 - SKIP_DOCKER: 1 - # only until we fix some broken tests, as we need it to pass - # in order to enable the caching - continue-on-error: true + # - name: lint + # task-name: lint + # os: ubuntu-22.04 + # env: + # SKIP_PODMAN: 1 + # SKIP_DOCKER: 1 + + # - name: test (linux) + # task-name: test + + # - name: test (macos) + # task-name: test + # os: macos-13-large + # env: + # SKIP_PODMAN: 1 + # SKIP_DOCKER: 1 + # # only until we fix some broken tests, as we need it to pass + # # in order to enable the caching + # continue-on-error: true - name: test (wsl) # runner does not support running containers task-name: als:test-without-ee log-name: als-test-without-ee # https://github.com/actions/virtual-environments/issues/5151 - os: devtools-win-x64 + os: [self-hosted, bmw10] shell: "wsl-bash {0}" env: SKIP_PODMAN: 1 SKIP_DOCKER: 1 steps: + # Custom Windows runners might not even have git installed + - name: Windows prepare + if: runner.os == 'Windows' + run: | + $gitVersion = git --version 2>$null + if (-not $?) { + winget install --id Git.Git -e --silent >$null 2>&1 + $gitVersion = git --version 2>$null + if (-not $?) { Exit 1 } + } + shell: pwsh + - uses: actions/checkout@v4 with: fetch-depth: 0 # we need tags for dynamic versioning