From 040813713c04805c40d00e0ee4ee06bd4ecfcf41 Mon Sep 17 00:00:00 2001 From: Sherzod Karimov Date: Wed, 8 Nov 2023 14:47:25 -0500 Subject: [PATCH] matrix --- .github/workflows/test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index caeccdeef78..3f1f037a37b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -79,6 +79,7 @@ jobs: strategy: matrix: go-version: [1.19.x, 1.20.x] + go-build-tags: ["--tags=goccy_gojson", ""] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} if: (github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) || github.event_name == 'schedule' @@ -91,12 +92,10 @@ jobs: go-version: ${{ matrix.go-version }} cache: true cache-dependency-path: tests/go.sum - - name: Test with encoding/json - run: ./run-tests.sh - - name: Test with goccy/go-json + - name: Test run: ./run-tests.sh env: - TESTARGS: "--tags=goccy_gojson" + TESTARGS: ${{ matrix.go-build-tags }} examples: runs-on: ubuntu-latest