Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: set up golang
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.25
- name: unit test
run: go test -parallel 4 -covermode=atomic -coverprofile=profile.cov -v ./...
- name: upload coverage to codecov
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v4
- name: Create Pull Request
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
run: |
# Get current branch name
branch_name=$(git symbolic-ref --short HEAD)
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Lint Golang code
on: [pull_request]
on:
pull_request:
branches-ignore:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22
cache: false
- name: run linter
uses: golangci/golangci-lint-action@v6
with:
version: v1.58.2
call-lint:
uses: dictyBase/workflows/.github/workflows/golang-lint.yaml@develop
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
version: v2.8.0-alpine
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: setup golang
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.25
- name: generate and publish binary
if: startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testcov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- name: set up golang
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.25
- name: check out code
uses: actions/checkout@v4
- name: unit test
Expand Down
87 changes: 50 additions & 37 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,74 @@
linters-settings:
lll:
line-length: 2380
funlen:
lines: 75
errcheck:
ignore : ""
version: "2"
run:
allow-parallel-runners: true
linters:
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
default: none
enable:
- asciicheck
- bidichk
- bodyclose
- cyclop
- copyloopvar
- cyclop
- decorder
- dogsled
- dupl
- errcheck
- errname
- funlen
- gochecknoinits
- funcorder
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- goimports
- gosec
- gosimple
- govet
- gocognit
- godoclint
- intrange
- ineffassign
- importas
- inamedparam
- interfacebloat
- lll
- loggercheck
- maintidx
- misspell
- mnd
- modernize
- nakedret
- nestif
- nilerr
- nolintlint
- prealloc
- paralleltest
- protogetter
- revive
- rowserrcheck
- recvcheck
- staticcheck
- stylecheck
- typecheck
- testifylint
- modernize
- unconvert
- thelper
- tparallel
- usestdlibvars
- unparam
- unused
- unconvert
- unparam
- varnamelen
- wastedassign
- whitespace
- wrapcheck

# don't enable:
# - godox - maligned,prealloc
# - gochecknoglobals
- wsl_v5
settings:
funlen:
lines: 120
statements: 50
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
- internal/baserow/
- internal/k8s/
formatters:
enable:
- gofumpt
- goimports
- golines
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
22 changes: 22 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# AGENTS.md


## Essential Commands

```bash
# Test
gotestsum --format pkgname-and-test-fails --format-hide-empty-pkg -- ./...

# Test (verbose)
gotestsum --format testdox --format-hide-empty-pkg -- ./...

# Watch mode
gotestsum --watch --format pkgname-and-test-fails --format-hide-empty-pkg -- ./...

# Lint
golangci-lint run ./...

# Format
golangci-lint fmt


2 changes: 1 addition & 1 deletion build/package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-bullseye AS builder
FROM golang:1.25-trixie AS builder
LABEL maintainer="Siddhartha Basu <siddhartha-basu@northwestern.edu>"
ENV GOPROXY https://proxy.golang.org
ENV GO111MODULE=on \
Expand Down
1 change: 1 addition & 0 deletions cmd/github-actions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func main() {
Value: "dictyBase",
},
}

app.Commands = []cli.Command{
cmd.IssueCommentCmds(),
cmd.CommentsCountByDateCmds(),
Expand Down
51 changes: 25 additions & 26 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/dictyBase-docker/github-actions

go 1.22
go 1.25.0

require (
github.com/Jeffail/gabs/v2 v2.7.0
Expand All @@ -10,45 +10,44 @@ require (
github.com/repeale/fp-go v0.11.1
github.com/sethvargo/go-githubactions v1.3.0
github.com/sirupsen/logrus v1.9.3
github.com/stretchr/testify v1.10.0
github.com/stretchr/testify v1.11.1
github.com/urfave/cli v1.22.16
golang.org/x/exp v0.0.0-20220613132600-b0d781184e0d
golang.org/x/oauth2 v0.26.0
golang.org/x/sync v0.11.0
golang.org/x/text v0.22.0
google.golang.org/api v0.219.0
golang.org/x/exp v0.0.0-20260508232706-74f9aab9d74a
golang.org/x/oauth2 v0.36.0
golang.org/x/sync v0.20.0
golang.org/x/text v0.37.0
google.golang.org/api v0.279.0
)

require (
cloud.google.com/go/auth v0.14.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.7 // indirect
cloud.google.com/go/compute/metadata v0.6.0 // indirect
cloud.google.com/go/auth v0.20.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
cloud.google.com/go/compute/metadata v0.9.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-ini/ini v1.66.6 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/s2a-go v0.1.9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.15 // indirect
github.com/googleapis/gax-go/v2 v2.22.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
go.opentelemetry.io/otel v1.32.0 // indirect
go.opentelemetry.io/otel/metric v1.32.0 // indirect
go.opentelemetry.io/otel/trace v1.32.0 // indirect
golang.org/x/crypto v0.32.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/sys v0.29.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250124145028-65684f501c47 // indirect
google.golang.org/grpc v1.70.0 // indirect
google.golang.org/protobuf v1.36.4 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.67.0 // indirect
go.opentelemetry.io/otel v1.43.0 // indirect
go.opentelemetry.io/otel/metric v1.43.0 // indirect
go.opentelemetry.io/otel/trace v1.43.0 // indirect
golang.org/x/crypto v0.51.0 // indirect
golang.org/x/net v0.54.0 // indirect
golang.org/x/sys v0.44.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260511170946-3700d4141b60 // indirect
google.golang.org/grpc v1.81.1 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading