Skip to content

[rhoai-2.9] sync from upstream incubation to main for 2.9 release #363

[rhoai-2.9] sync from upstream incubation to main for 2.9 release

[rhoai-2.9] sync from upstream incubation to main for 2.9 release #363

Workflow file for this run

name: linters
on:
push:
branches:
- main
- incubation
pull_request:
jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
env:
REPOSITORY: go/src/github.com/${{ github.repository }}
steps:
- uses: actions/checkout@v4
with:
path: ${{ env.REPOSITORY }}
- name: Set up Go env
uses: actions/setup-go@v4
with:
go-version-file: ${{ env.REPOSITORY }}/go.mod
- name: Set $GOPATH
run: |
echo "GOPATH=${{ github.workspace }}/go" >> $GITHUB_ENV
echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH
shell: bash
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.0
working-directory: ${{ env.REPOSITORY }}
args: --timeout 5m0s