Skip to content

Commit

Permalink
Update .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ladydascalie committed Sep 29, 2024
1 parent 3b3d13e commit eeff0f4
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 504 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@ name: Go

on:
push:
branches: [ main, develop ]
branches: [main, develop]
pull_request:
branches: [ main, develop ]
branches: [main, develop]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
cache: false

- name: Test
run: go test -v ./... --cover
- name: Test
run: go test -v ./... --cover
5 changes: 3 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:

jobs:
lint:
Expand All @@ -16,7 +17,7 @@ jobs:
go-version-file: "./go.mod"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m --out-format=github-actions --issues-exit-code 0 --new-from-rev=main
args: --timeout=5m --out-format=colored-line-number --issues-exit-code 0 --new-from-rev=main
12 changes: 0 additions & 12 deletions .golangci.yml

This file was deleted.

8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ require github.com/prometheus/client_golang v1.20.4
require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/klauspost/compress v1.17.10 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/common v0.59.1 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/sys v0.25.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
)
Loading

0 comments on commit eeff0f4

Please sign in to comment.