Fix: Allow non-admin users to run plugin commands with AdminOnly=false #420
This file contains hidden or 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: Go CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24.x' | |
| - name: Tidy modules | |
| run: go mod tidy | |
| - name: Build | |
| run: go build ./... | |
| - name: Test | |
| run: go test ./... | |
| - name: Lint (golangci-lint if available, else go vet) | |
| run: | | |
| if go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest 2>/dev/null; then | |
| $(go env GOPATH)/bin/golangci-lint run ./... | |
| else | |
| go vet ./... | |
| fi |