diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index eeae4c9..f768d11 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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: - @@ -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