Skip to content

ci-ristretto-lint #8943

ci-ristretto-lint

ci-ristretto-lint #8943

name: ci-ristretto-lint
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * *"
jobs:
go-lint:
if: github.event.pull_request.draft == false
name: lint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Get Go Version
run: |
#!/bin/bash
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVERSION }}
- name: golang-lint
env:
# prevent OOM
GOGC: 10
uses: golangci/golangci-lint-action@v3
with:
version: latest
only-new-issues: true
args: --timeout=10m