From a5423dfe4d864b7be5581c821082e15f9051d607 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 1 Jun 2025 12:11:41 +0200 Subject: [PATCH] chore(ci): use matrix to run tests on multiple architectures --- .gitea/workflows/golang-tests.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/golang-tests.yaml b/.gitea/workflows/golang-tests.yaml index c46ec77..413cc33 100644 --- a/.gitea/workflows/golang-tests.yaml +++ b/.gitea/workflows/golang-tests.yaml @@ -9,13 +9,16 @@ on: jobs: unittest: - runs-on: - - ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + go: [ stable ] + os: [ ubuntu-latest-amd64, ubuntu-latest-arm64 ] steps: - uses: actions/checkout@v4.2.2 - uses: actions/setup-go@v5.5.0 with: - go-version: stable + go-version: ${{ matrix.go }} - env: GOPROXY: ${{ vars.GOPROXY }} run: make test/unit