chore: Replace deprecation ioutil
fucntions and add depguard rules in .golangci.yml
#1777
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Licenses Lint | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
pull_request: | |
jobs: | |
licenses-lint: | |
name: Licenses Lint | |
timeout-minutes: 40 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21.x | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: generate license mirror | |
run: | | |
make licenses-check | |
- name: lint-licenses | |
# if restricted > 0, CI will report an error. | |
run: | | |
make lint-licenses |