Skip to content

Commit

Permalink
Test publish on arm64 (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi authored Oct 8, 2023
1 parent 38e2922 commit 4e4df66
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,26 @@ jobs:
json_file: 'tests.json'

publish-docker-image:
name: Publish Test Results (Docker Image)
name: Publish Test Results (Docker Image ${{ matrix.arch }})
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
security-events: write
strategy:
fail-fast: false
matrix:
arch: [amd64, arm64]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: ${{ matrix.arch }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -67,6 +74,7 @@ jobs:
with:
load: true
push: false
platforms: linux/${{ matrix.arch }}
tags: enricomi/publish-unit-test-result-action:latest
outputs: type=docker

Expand All @@ -80,14 +88,14 @@ jobs:
if: always()
env:
INPUT_GITHUB_TOKEN: ${{ github.token }}
INPUT_CHECK_NAME: Test Results (Docker Image)
INPUT_CHECK_NAME: Test Results (Docker Image ${{ matrix.arch }})
INPUT_FILES: "artifacts/**/*.xml"
INPUT_JSON_FILE: "tests.json"
INPUT_JSON_SUITE_DETAILS: true
INPUT_JSON_TEST_CASE_RESULTS: true
INPUT_REPORT_SUITE_LOGS: "any"
run: |
docker run \
docker run --platform linux/${{ matrix.arch }} \
--workdir $GITHUB_WORKSPACE \
--rm \
-e "INPUT_CHECK_NAME" \
Expand Down

0 comments on commit 4e4df66

Please sign in to comment.