Skip to content

Commit

Permalink
ci: run golangci-lint (#7)
Browse files Browse the repository at this point in the history
* ci: run golangci-lint

* fix: env vars
  • Loading branch information
dunglas authored Aug 20, 2024
1 parent 14849a8 commit 888450f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
go-version: ['stable', 'oldstable']
env:
GOEXPERIMENT: cgocheck2
PKG_CONFIG_PATH: ${{ github.workspace }}/fswatch/target/lib/pkgconfig
LD_LIBRARY_PATH: ${{ github.workspace }}/fswatch/target/lib
DYLD_LIBRARY_PATH: ${{ github.workspace }}/fswatch/target/lib
name: Go (${{ matrix.os }}, Go ${{ matrix.go-version }})
steps:
-
Expand Down Expand Up @@ -54,8 +57,8 @@ jobs:
make install
-
name: Run tests
env:
PKG_CONFIG_PATH: ${{ github.workspace }}/fswatch/target/lib/pkgconfig
LD_LIBRARY_PATH: ${{ github.workspace }}/fswatch/target/lib
DYLD_LIBRARY_PATH: ${{ github.workspace }}/fswatch/target/lib
run: go test -race
-
name: Lint
if: matrix.go-version == 'stable' && matrix.os == 'ubuntu-latest'
uses: golangci/golangci-lint-action@v6

0 comments on commit 888450f

Please sign in to comment.