Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/cache-ui-dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ runs:
/github/home/.npm
/github/home/.cache/Cypress
/usr/local/share/.cache
key: npm-v2-${{ hashFiles(inputs.lockFile) }}
key: npm-v2-${{ runner.arch }}-${{ hashFiles(inputs.lockFile) }}
28 changes: 19 additions & 9 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
fail-fast: false
matrix:
gotags: [ 'GOTAGS=""', 'GOTAGS=release' ]
runs-on: ubuntu-latest
arch: [amd64, arm64]
runs-on: ubuntu-24.04${{ (matrix.arch == 'arm64' && '-arm') || '' }}
outputs:
new-jiras: ${{ steps.junit2jira.outputs.new-jiras }}
container:
Expand Down Expand Up @@ -81,7 +82,7 @@ jobs:
paths: 'junit-reports/report.xml'

- name: Report test failures to Jira
if: (!cancelled())
if: (!cancelled()) && matrix.arch != 'arm64' # TODO(ROX-30487) junit2jira needs arm release
id: junit2jira
uses: ./.github/actions/junit2jira
with:
Expand Down Expand Up @@ -209,7 +210,11 @@ jobs:

ui:
needs: define-ci-versions
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [amd64, arm64]
runs-on: ubuntu-24.04${{ (matrix.arch == 'arm64' && '-arm') || '' }}
outputs:
new-jiras: ${{ steps.junit2jira.outputs.new-jiras }}
container:
Expand All @@ -229,13 +234,13 @@ jobs:
run: make ui-test

- name: Publish Test Report
if: matrix.arch != 'arm64' # TODO(ROX-30487)
uses: test-summary/action@v2
if: always()
with:
paths: 'ui/apps/platform/test-results/reports/*.xml'

- name: Report junit failures in jira
if: (!cancelled())
if: (!cancelled()) && matrix.arch != 'arm64' # TODO(ROX-30487) junit2jira needs arm release
id: junit2jira
uses: ./.github/actions/junit2jira
with:
Expand All @@ -246,7 +251,11 @@ jobs:

ui-component:
needs: define-ci-versions
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [amd64, arm64]
runs-on: ubuntu-24.04${{ (matrix.arch == 'arm64' && '-arm') || '' }}
outputs:
new-jiras: ${{ steps.junit2jira.outputs.new-jiras }}
container:
Expand All @@ -260,26 +269,27 @@ jobs:
gcp-account: ${{ secrets.GCP_SERVICE_ACCOUNT_STACKROX_CI }}

- name: Cache UI dependencies
if: matrix.arch != 'arm64' # TODO(ROX-30487)
uses: ./.github/actions/cache-ui-dependencies

- name: UI Component Tests
run: make ui-component-tests

- name: Upload Cypress test result artifacts
if: matrix.arch != 'arm64' # TODO(ROX-30487)
uses: ./.github/actions/upload-artifact-with-retry
if: always()
with:
name: Cypress test results
path: ui/apps/platform/cypress/test-results/

- name: Publish Test Report
if: matrix.arch != 'arm64' # TODO(ROX-30487)
uses: test-summary/action@v2
if: always()
with:
paths: 'ui/apps/platform/cypress/test-results/reports/**/*.xml'

- name: Report junit failures in jira
if: (!cancelled())
if: (!cancelled()) && matrix.arch != 'arm64' # TODO(ROX-30487) junit2jira needs arm release
id: junit2jira
uses: ./.github/actions/junit2jira
with:
Expand Down
Loading