From 96455c4f3dbc5f7d4281ead64afb21e1c4697b65 Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Tue, 30 Jan 2024 18:53:59 -0700 Subject: [PATCH] [chore] Parallelize lint target (#30897) **Description:** Parallelizes the windows/linux linting. **Link to tracking Issue:** Related to https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/30880 --- .github/workflows/build-and-test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 38e8e1d35936..58b69f7d54d1 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -63,6 +63,9 @@ jobs: lint-matrix: strategy: matrix: + test: + - windows + - linux group: - receiver-0 - receiver-1 @@ -103,9 +106,7 @@ jobs: path: ~/.cache/go-build key: go-lint-build-${{ matrix.group }}-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Lint - run: make -j2 golint GROUP=${{ matrix.group }} - - name: Lint with GOOS=windows - run: GOOS=windows make -j2 golint GROUP=${{ matrix.group }} + run: GOOS=${{ matrix.os }} GOARCH=amd64 make -j2 golint GROUP=${{ matrix.group }} lint: if: ${{ github.actor != 'dependabot[bot]' && always() }} runs-on: ubuntu-latest