Skip to content

Commit

Permalink
all changes
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Riobo Lorenzo <[email protected]>
  • Loading branch information
adrianriobo committed Mar 25, 2024
1 parent e778c57 commit 0bc3785
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/windows-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Upload windows installer artifact
uses: actions/upload-artifact@v4
with:
name: Windows Installer (${{ matrix.os }})
name: windows-installer
path: "./out/windows-amd64/crc-windows-installer.zip"

build-qe:
Expand Down Expand Up @@ -93,5 +93,5 @@ jobs:
- name: Upload the GH context artifact
uses: actions/upload-artifact@v4
with:
name: gh_context
name: gh-context
path: gh_context.json
8 changes: 5 additions & 3 deletions .github/workflows/windows-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
windows-e2e-ocp:
uses: adrianriobo/crc/.github/workflows/windows-qe-tpl.yml@fix4040-extended
uses: adrianriobo/crc/.github/workflows/windows-qe-tpl.yml@fix-4040-extended
strategy:
fail-fast: false
matrix:
Expand All @@ -18,9 +18,11 @@ jobs:
- qe-type: 'e2e'
preset: 'all'
- qe-type: 'integration'
preset: ['openshift', 'microshift']
preset: 'openshift'
- qe-type: 'integration'
preset: 'microshift'
with:
workflow-id: ${{ github.event.workflow_run.workflow_id }}
trigger-workflow-id: ${{ github.event.workflow_run.workflow_id }}
qe-type: ${{matrix.qe-type}}
preset: ${{matrix.preset}}
secrets:
Expand Down
36 changes: 23 additions & 13 deletions .github/workflows/windows-qe-tpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: windows-qe-tpl
on:
workflow_call:
inputs:
workflow-id:
trigger-workflow-id:
required: true
type: string
qe-type:
Expand Down Expand Up @@ -36,20 +36,30 @@ jobs:
strategy:
fail-fast: false
matrix:
windows-version: ['10','11']
windows-featurepack: ['22h2-ent', '23h2-ent']
exclude:
- windows-version: '10'
windows-featurepack: '23h2-ent'
- windows-version: '11'
windows-featurepack: '22h2-ent'
windows-version: ['11']
windows-featurepack: ['23h2-ent']

steps:
- name: Download artifacts to be tested
- name: Download gh context
id: download-gh-context-artifact
uses: dawidd6/action-download-artifact@v3
with:
workflow: ${{inputs.workflow_id}}
workflow: ${{inputs.trigger-workflow-id}}
name: gh-context

- name: Download windows installer
id: download-windows-installer-artifact
uses: dawidd6/action-download-artifact@v3
with:
workflow: ${{inputs.trigger-workflow-id}}
name: windows-installer

- name: Download qe oci image
id: download-qe-oci-image-artifact
uses: dawidd6/action-download-artifact@v3
with:
workflow: ${{inputs.trigger-workflow-id}}
name: crc-${{inputs.qe-type}}-windows-amd64

- name: Set environment for the run
run: |
Expand All @@ -67,7 +77,7 @@ jobs:
run: |
set -xuo
# Status msg
data="{\"state\":\"pending\"
data="{\"state\":\"pending\""
data="${data},\"description\":\"Running ${{inputs.qe-type}} on Windows\""
data="${data},\"context\":\"ci/gh/${{inputs.qe-type}}/windows-${{matrix.windows-version}}-${{matrix.windows-featurepack}}\""
data="${data},\"target_url\":\"https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}"
Expand Down Expand Up @@ -173,9 +183,9 @@ jobs:
run: |
set -xuo
# Status msg
data="{\"state\":\"success\"
data="{\"state\":\"success\""
if [[ ${{steps.test-report.outcome}} != "success" ]]; then
data="{\"state\":\"failure\"
data="{\"state\":\"failure\""
fi
data="${data},\"description\":\"Finished ${{inputs.qe-type}} on Windows\""
data="${data},\"context\":\"ci/gh/${{inputs.qe-type}}/windows-${{matrix.windows-version}}-${{matrix.windows-featurepack}}\""
Expand Down

0 comments on commit 0bc3785

Please sign in to comment.