Skip to content

chore: Replace deprecation ioutil fucntions and add depguard rules in .golangci.yml #6041

chore: Replace deprecation ioutil fucntions and add depguard rules in .golangci.yml

chore: Replace deprecation ioutil fucntions and add depguard rules in .golangci.yml #6041

Workflow file for this run

name: Code Verify
on:
push:
branches:
- master
tags:
pull_request:
jobs:
verify:
runs-on: ubuntu-24.04
name: Verify codes, generated files
timeout-minutes: 40
env:
GOPATH: /home/runner/work/${{ github.repository }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
path: ./src/github.com/${{ github.repository }}
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Run verify test
run: |
make lint
make verify
make TAG=latest generate-yaml
make verify-generated-yaml
sudo make unit-test
working-directory: ./src/github.com/${{ github.repository }}