Skip to content

Commit 7945f13

Browse files
author
Paul Gabriel
committed
Merge master
2 parents 2150d8f + 72c201e commit 7945f13

20 files changed

Lines changed: 459 additions & 156 deletions

.github/pull_request_template.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Pull Request Template
2+
3+
### Description
4+
Please provide a brief description of the changes in this PR.
5+
6+
### Type of Change
7+
- [ ] Bug fix (non-breaking change which fixes an issue)
8+
- [ ] New feature (non-breaking change which adds functionality)
9+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
10+
- [ ] Documentation update
11+
- [ ] Code refactoring
12+
- [ ] Other (please describe):
13+
14+
### Testing
15+
- [ ] I have run `make release-tests` and all tests pass
16+
- [ ] I have added tests that prove my fix is effective or that my feature works
17+
- [ ] New and existing unit tests pass locally with my changes
18+
19+
### Code Quality
20+
- [ ] My code follows the style guidelines of this project
21+
- [ ] I have performed a self-review of my own code
22+
- [ ] I have commented my code, particularly in hard-to-understand areas
23+
- [ ] I have made corresponding changes to the documentation
24+
25+
### Before Submitting
26+
Please ensure you have completed the following before submitting your PR:
27+
28+
```bash
29+
# Run comprehensive tests
30+
make release-tests
31+
```
32+
33+
If the above command fails, please fix the issues before submitting your PR.
34+
35+
### Additional Notes
36+
Add any other context about the pull request here.

.github/workflows/docker-master.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v5
1414

1515
- name: Set up QEMU
16-
uses: docker/setup-qemu-action@v1
16+
uses: docker/setup-qemu-action@v3
1717

1818
- name: Set up Docker Buildx
1919
id: buildx
2020
uses: docker/setup-buildx-action@v3
2121

2222
- name: Docker meta
2323
id: meta
24-
uses: docker/metadata-action@v3
24+
uses: docker/metadata-action@v5
2525
with:
2626
images: |
2727
lablabs/cloudflare_exporter
@@ -43,7 +43,7 @@ jobs:
4343
password: ${{ secrets.GITHUB_TOKEN }}
4444

4545
- name: Build image and push to Docker Hub and GitHub Container Registry
46-
uses: docker/build-push-action@v5
46+
uses: docker/build-push-action@v6
4747
with:
4848
context: .
4949
file: ./Dockerfile

.github/workflows/docker-release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Set up QEMU
17-
uses: docker/setup-qemu-action@v1
17+
uses: docker/setup-qemu-action@v3
1818

1919
- name: Set up Docker Buildx
2020
id: buildx
2121
uses: docker/setup-buildx-action@v3
2222

2323
- name: Docker meta
2424
id: meta
25-
uses: docker/metadata-action@v3
25+
uses: docker/metadata-action@v5
2626
with:
2727
images: |
2828
lablabs/cloudflare_exporter
@@ -44,7 +44,7 @@ jobs:
4444
password: ${{ secrets.GITHUB_TOKEN }}
4545

4646
- name: Build image and push to Docker Hub and GitHub Container Registry
47-
uses: docker/build-push-action@v5
47+
uses: docker/build-push-action@v6
4848
with:
4949
context: .
5050
file: ./Dockerfile

.github/workflows/go-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout the repository
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@v5
1313
- name: Generate build files
1414
uses: thatisuday/go-cross-build@v1
1515
with:

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
name: GO lang CI linter
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
- uses: actions/setup-go@v5
1515
with:
16-
go-version: "1.22"
16+
go-version: "1.25"
1717
- name: golangci-lint
18-
uses: golangci/golangci-lint-action@v6 # https://github.com/marketplace/actions/run-golangci-lint
18+
uses: golangci/golangci-lint-action@v8 # https://github.com/marketplace/actions/run-golangci-lint
1919
with:
2020
version: latest

.github/workflows/lint-test.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v4
10+
uses: actions/checkout@v5
1111
with:
1212
fetch-depth: 0
1313

1414
- name: Set up Helm
15-
uses: azure/setup-helm@v1
15+
uses: azure/setup-helm@v4
1616
with:
1717
version: v3.4.0
1818

19-
- uses: actions/setup-python@v5
19+
- uses: actions/setup-python@v6
2020
with:
2121
python-version: 3.7
2222

2323
- name: Set up chart-testing
24-
uses: helm/chart-testing-action@v2.6.1
24+
uses: helm/chart-testing-action@v2.7.0
2525

2626
- name: Run chart-testing (list-changed)
2727
id: list-changed
@@ -35,7 +35,7 @@ jobs:
3535
run: ct lint --target-branch master
3636

3737
- name: Create kind cluster
38-
uses: helm/kind-action@v1.2.0
38+
uses: helm/kind-action@v1.12.0
3939
if: steps.list-changed.outputs.changed == 'true'
4040

4141
- name: Run chart-testing (install)

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v5
1414
with:
1515
fetch-depth: 0
1616

@@ -27,16 +27,16 @@ jobs:
2727
# ./get_helm.sh
2828

2929
- name: Install Helm
30-
uses: azure/setup-helm@v4.2.0
30+
uses: azure/setup-helm@v4
3131
with:
32-
version: 3.14.0
32+
version: 3.19.0
3333

3434
- name: Add dependency chart repos
3535
run: |
3636
helm repo add stable https://charts.helm.sh/stable
3737
helm repo add incubator https://charts.helm.sh/incubator
3838
3939
- name: Run chart-releaser
40-
uses: helm/chart-releaser-action@v1.6.0
40+
uses: helm/chart-releaser-action@v1.7.0
4141
env:
4242
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.golangci.yaml

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
1-
linters:
2-
disable:
3-
- errcheck
4-
enable:
5-
#- gosimple
6-
- staticcheck
7-
- govet
8-
9-
- asciicheck
10-
- errorlint
11-
- gofmt
12-
- goimports
13-
- gosec
14-
# - gocritic
15-
- importas
16-
# - prealloc
17-
- revive
18-
- misspell
19-
- stylecheck
20-
- unconvert
21-
- unused
22-
- whitespace
23-
24-
linters-settings:
25-
gofmt:
26-
# simplify code: gofmt with `-s` option, true by default
27-
simplify: true
1+
version: "2"
2+
linters:
3+
enable:
4+
- asciicheck
5+
- errorlint
6+
- gosec
7+
- importas
8+
- misspell
9+
- revive
10+
- staticcheck
11+
- unconvert
12+
- whitespace
13+
disable:
14+
- errcheck
15+
exclusions:
16+
generated: lax
17+
presets:
18+
- comments
19+
- common-false-positives
20+
- legacy
21+
- std-error-handling
22+
paths:
23+
- third_party$
24+
- builtin$
25+
- examples$
26+
formatters:
27+
enable:
28+
- gofmt
29+
- goimports
30+
settings:
31+
gofmt:
32+
simplify: true
33+
exclusions:
34+
generated: lax
35+
paths:
36+
- third_party$
37+
- builtin$
38+
- examples$

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-merge-conflict
66
- id: trailing-whitespace
@@ -14,6 +14,6 @@ repos:
1414
- id: debug-statements
1515

1616
- repo: https://github.com/golangci/golangci-lint
17-
rev: v1.58.0
17+
rev: v2.5.0
1818
hooks:
1919
- id: golangci-lint

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ COPY go.sum go.sum
1212
RUN go get -d -v
1313
RUN CGO_ENABLED=0 GOOS=linux go build --ldflags '-w -s -extldflags "-static"' -o cloudflare_exporter .
1414

15-
FROM alpine:3.19
15+
FROM alpine:3.22
1616

1717
RUN apk update && apk add ca-certificates
1818

0 commit comments

Comments
 (0)