Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: update example

chore: update example #17

Workflow file for this run

name:golangci-lint
on:
push:
branches:
-main
pull_request:
permissions:
contents:read
jobs:
linter:
name:golangci-lint
runs-on:${{ matrix.os }}
strategy:
matrix:
go-version:[stable, oldstable ]
os:[ubuntu-latest, macos-latest]# Go plugins are only supported on linux, freebsd, and darwin.
env:
CGO_ENABLED:0
steps:
-uses:actions/checkout@v4
-uses:actions/setup-go@v5
with:
go-version:${{ matrix.go-version }}
-name:Check and get dependencies
run:|
go mod tidy
git diff --exit-code go.mod
# git diff --exit-code go.sum
-name:Install plugins
run:|
git clone https://github.com/golangci/example-plugin-linter.git
cd example-plugin-linter
go build -o '${{ github.workspace }}/.plugins/example.so' -buildmode=plugin plugin/example.go
working-directory:${{ runner.temp }}
env:
CGO_ENABLED:1
-name:golangci-lint
uses:golangci/golangci-lint-action@v7
with:
version:v2.1.1
# The installation mode `goinstall` always uses `CGO_ENABLED=1`.
install-mode:goinstall
-name:Test
run:go test -v -cover ./...
-name:Build
run:go build -v -ldflags "-s -w" -trimpath

[8]ページ先頭

©2009-2025 Movatter.jp