when: event: pull_request branch: main matrix: include: - IMAGE: golang:1.20-alpine PACKAGE_MANAGER: apk INSTALL_CMD: "add --no-cache" PACKAGE: "make alpine-sdk g++" - IMAGE: golang:latest PACKAGE_MANAGER: apt INSTALL_CMD: "upgrade -y" PACKAGE: "" steps: prepare-build: image: ${IMAGE} commands: - ${PACKAGE_MANAGER} update - ${PACKAGE_MANAGER} ${INSTALL_CMD} ${PACKAGE} - make dep - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2 - make lint - make fmt