Skip to content

Commit f0f52ad

Browse files
committed
ci: update Go version and workflow formatting adjustments
1 parent 29cecb7 commit f0f52ad

File tree

7 files changed

+19
-18
lines changed

7 files changed

+19
-18
lines changed

.github/workflows/goreleaser.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: goreleaser
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "*"
77

88
permissions:
99
contents: write
@@ -19,6 +19,8 @@ jobs:
1919

2020
- name: Set up Go
2121
uses: actions/setup-go@v5
22+
with:
23+
go-version: 1.22.5
2224

2325
- name: Set up QEMU
2426
uses: docker/setup-qemu-action@v3
@@ -39,4 +41,4 @@ jobs:
3941
version: latest
4042
args: release --clean
4143
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/security.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Security Testing
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
types: [ opened, synchronize, reopened ]
7+
types: [opened, synchronize, reopened]
88

99
env:
10-
GO_VERSION: '1.22.2'
10+
GO_VERSION: "1.22.5"
1111

1212
jobs:
1313
SAST:
@@ -56,4 +56,4 @@ jobs:
5656
with:
5757
go-version-input: ${{ env.GO_VERSION }}
5858
go-package: ./...
59-
cache: false
59+
cache: false

.github/workflows/test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
77

88
jobs:
99
test:
1010
runs-on: ubuntu-latest
1111
steps:
12-
1312
- uses: actions/checkout@v4
1413

1514
- name: Setup Go
1615
uses: actions/setup-go@v5
1716
with:
18-
go-version: 1.22.2
17+
go-version: 1.22.5
1918

2019
- name: Install go-junit-report
2120
run: |
@@ -37,4 +36,4 @@ jobs:
3736
uses: test-summary/action@v2
3837
with:
3938
paths: report.xml
40-
show: all
39+
show: all

config/logging.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package config
22

33
var (
4-
// region Logging
4+
// region Logging.
55

66
// LoggingFormat defines the logging format used for log messages. Allowed values are "json" and "text".
77
LoggingFormat = NewKey("logging.format",
@@ -28,5 +28,5 @@ var (
2828
LoggingLevel = NewKey("logging.level",
2929
WithDefaultValue("INFO"),
3030
WithAllowedStrings([]string{"TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "PANIC", "DISABLED"}))
31-
// endregion
31+
// endregion.
3232
)

config/sync.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package config
22

33
var (
4-
// region Sync
4+
// region Sync.
55

66
// SyncMaxErrors specifies the maximum number of errors that can occur before the application exits.
77
SyncMaxErrors = NewKey("sync.maxErrors",
@@ -44,5 +44,5 @@ var (
4444
}),
4545
WithValidImages())
4646

47-
// endregion
47+
// endregion.
4848
)

config/telemetry.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package config
22

33
var (
4-
// region Telemetry
4+
// region Telemetry.
55

66
// TelemetryEnabled indicates whether telemetry is enabled.
77
TelemetryEnabled = NewKey("telemetry.enabled",
@@ -13,7 +13,7 @@ var (
1313
WithDefaultValue("prometheus"),
1414
WithAllowedStrings([]string{"prometheus", "stdout"}))
1515

16-
// TelemetryMetricsPrometheusAddress specifies the network address for the Prometheus
16+
// TelemetryMetricsPrometheusAddress specifies the network address for the Prometheus.
1717
TelemetryMetricsPrometheusAddress = NewKey("telemetry.metrics.prometheus.address",
1818
WithDefaultValue("127.0.0.1:9090"),
1919
WithValidNetHostPort())
@@ -27,5 +27,5 @@ var (
2727
TelemetryMetricsStdoutInterval = NewKey("telemetry.metrics.stdout.interval",
2828
WithDefaultValue("5s"),
2929
WithValidDuration())
30-
// endregion
30+
// endregion.
3131
)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/Altinity/docker-sync
22

3-
go 1.21.1
3+
go 1.21.5
44

55
require (
66
github.com/aws/aws-sdk-go v1.53.19

0 commit comments

Comments
 (0)