lint.yml 861 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Lint
  2. on:
  3. - push
  4. - pull_request
  5. env:
  6. CGO_LDFLAGS_ALLOW: "-s|-w"
  7. jobs:
  8. lint:
  9. runs-on: ubuntu-latest
  10. container:
  11. image: darthsim/imgproxy-ci:202404152040
  12. strategy:
  13. matrix:
  14. go-version: ["1.22.x"]
  15. vips-version: ["8.15"]
  16. steps:
  17. - name: Checkout
  18. uses: actions/checkout@v4
  19. - uses: actions/setup-go@v4
  20. with:
  21. go-version: ${{ matrix.go-version }}
  22. - name: Download mods
  23. run: go mod download
  24. - name: Lint
  25. uses: golangci/golangci-lint-action@v3
  26. with:
  27. version: v1.57.2
  28. args: --timeout 5m0s
  29. skip-cache: true
  30. env:
  31. LD_LIBRARY_PATH: "/usr/local/lib:/root/vips/${{ matrix.vips-version }}/lib"
  32. PKG_CONFIG_PATH: "/usr/local/lib/pkgconfig:/root/vips/${{ matrix.vips-version }}/lib/pkgconfig"