Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Rebase/v3.2.1 (#24) #78

Rebase/v3.2.1 (#24)

Rebase/v3.2.1 (#24) #78

Workflow file for this run

name: Lint
on:
- push
- pull_request
env:
CGO_LDFLAGS_ALLOW: "-s|-w"
jobs:
lint:
runs-on: ubuntu-latest
container:
image: darthsim/imgproxy-ci:202311211816
strategy:
matrix:
go-version: ["1.21.4"]
vips-version: ["8.15"]
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Cache mods
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Download mods
run: go mod download
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.0
args: --timeout 5m0s
skip-cache: true
env:
LD_LIBRARY_PATH: "/usr/local/lib:/root/vips/${{ matrix.vips-version }}/lib"
PKG_CONFIG_PATH: "/usr/local/lib/pkgconfig:/root/vips/${{ matrix.vips-version }}/lib/pkgconfig"