Skip to content

Update import package #4

Update import package

Update import package #4

Workflow file for this run

name: Go Vet
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- '**/*.md'
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
- '**/*.md'
jobs:
static-analysis:
# 定义矩阵的值,指定不同的平台
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Dependencies
run: go mod download
- name: Run Go Vet
run: go vet ./...