Skip to content

Commit 174a2e4

Browse files
authored
chore(ci): adds lint to CI. (hypertrace#36)
* chore(ci): adds lint to CI. * chore(ci): only run lint on ubuntu.
1 parent 63efb38 commit 174a2e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ jobs:
2121
go-version: ${{ matrix.go-version }}
2222
- name: Checkout code
2323
uses: actions/checkout@v2
24+
- if: matrix.os == "ubuntu-latest"
25+
name: golangci-lint
26+
uses: golangci/golangci-lint-action@v2
27+
with:
28+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
29+
version: v1.29
2430
- name: Run unit tests
2531
run: make test
2632
- name: Build collector
2733
run: make build
28-
- if: ${{ matrix.os}} != "windows-latest"
34+
- if: matrix.os != "windows-latest"
2935
name: Launch collector for E2E tests
3036
run: ./collector --config ./_tests/e2e/test-config.yml &
3137
- if: ${{ matrix.os}} != "windows-latest"

0 commit comments

Comments
 (0)