Skip to content

Update registry.access.redhat.com/ubi9/go-toolset Docker tag to v9 #642

Update registry.access.redhat.com/ubi9/go-toolset Docker tag to v9

Update registry.access.redhat.com/ubi9/go-toolset Docker tag to v9 #642

Workflow file for this run

# Copyright 2023 Red Hat, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Go linters
on:
push:
branches: ["master", "main"]
pull_request:
jobs:
golint:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- "1.20"
- "1.21"
name: Linters for Go ${{ matrix.go-version}}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build project
run: make
- name: GO formatting
run: make fmt
- name: GO lint
run: make lint
- name: GO vet
run: make vet
- name: gocyclo
run: make cyclo
- name: shellcheck
run: make shellcheck
- name: errcheck
run: make errcheck
- name: goconst checker
run: make goconst
- name: gosec checker
run: make gosec
- name: ineffassign checker
run: make ineffassign
- name: ABC metrics checker
run: make abcgo