Skip to content

Commit

Permalink
[chore] Parallelize lint target (open-telemetry#30897)
Browse files Browse the repository at this point in the history
**Description:** 

Parallelizes the windows/linux linting.

**Link to tracking Issue:** <Issue number if applicable>

Related to
open-telemetry#30880
  • Loading branch information
TylerHelmuth authored and cparkins committed Feb 1, 2024
1 parent 90eeb93 commit 96455c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
lint-matrix:
strategy:
matrix:
test:
- windows
- linux
group:
- receiver-0
- receiver-1
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 96455c4

Please sign in to comment.