Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade to go 1.22 #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Continuous Integration'
name: "Continuous Integration"

on:
push:
Expand All @@ -16,7 +16,7 @@ jobs:
- name: Setup
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.22

- name: Checkout
uses: actions/checkout@v2
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Code Analysis'
name: "Code Analysis"

on:
pull_request:
Expand All @@ -13,37 +13,37 @@ jobs:
- name: Setup
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.22

- name: Checkout
uses: actions/checkout@v2

- name: Setup Codacy Analyze Tool
run: |
curl -L https://github.com/codacy/codacy-analysis-cli/archive/master.tar.gz | \
tar xvz && cd codacy-analysis-cli-* && sudo make install \
&& cd .. && rm -rf master.* codacy-analysis-cli-*
curl -L https://github.com/codacy/codacy-analysis-cli/archive/master.tar.gz | \
tar xvz && cd codacy-analysis-cli-* && sudo make install \
&& cd .. && rm -rf master.* codacy-analysis-cli-*

- name: Run aligncheck
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
codacy-analysis-cli analyze --provider gh \
--username leroy-merlin-br \
--project logstash_exporter \
--tool aligncheck \
--allow-network \
--upload \
--verbose
codacy-analysis-cli analyze --provider gh \
--username leroy-merlin-br \
--project logstash_exporter \
--tool aligncheck \
--allow-network \
--upload \
--verbose

- name: Run deadcode
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
codacy-analysis-cli analyze --provider gh \
--username leroy-merlin-br \
--project logstash_exporter \
--tool deadcode \
--allow-network \
--upload \
--verbose
codacy-analysis-cli analyze --provider gh \
--username leroy-merlin-br \
--project logstash_exporter \
--tool deadcode \
--allow-network \
--upload \
--verbose
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Create release'
name: "Create release"

on:
push:
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Setup
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.22

- name: Bump version and push tag
id: tag_version
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.7-alpine3.14 as build
FROM golang:1.22.3-alpine3.20 as build

WORKDIR /src

Expand Down
18 changes: 17 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,20 @@ require (
gopkg.in/alecthomas/kingpin.v2 v2.2.6
)

go 1.16
require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 // indirect
google.golang.org/protobuf v1.26.0-rc.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

go 1.22