diff --git a/.ci/yamllint.yml b/.ci/yamllint.yml index 6bf1836..c0fd729 100644 --- a/.ci/yamllint.yml +++ b/.ci/yamllint.yml @@ -9,3 +9,5 @@ rules: truthy: disable # 80 chars should be enough, but don't fail if a line is longer line-length: disable + comments: + min-spaces-from-content: 1 diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 73fae7c..8d8dafc 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -19,7 +19,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: Build run: go build -race ./... - name: Test diff --git a/.github/workflows/checkgomod.yaml b/.github/workflows/checkgomod.yaml index 7649137..40172d7 100644 --- a/.github/workflows/checkgomod.yaml +++ b/.github/workflows/checkgomod.yaml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - run: go mod tidy - name: Check for changes in go.mod or go.sum run: | diff --git a/.github/workflows/cmd-gogenerate.yaml b/.github/workflows/cmd-gogenerate.yaml index ada3742..e5cbdf5 100644 --- a/.github/workflows/cmd-gogenerate.yaml +++ b/.github/workflows/cmd-gogenerate.yaml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - run: go generate ./... - name: Check for changes run: | diff --git a/.github/workflows/docker-build-and-test.yaml b/.github/workflows/docker-build-and-test.yaml index 8c1ee58..4b070ec 100644 --- a/.github/workflows/docker-build-and-test.yaml +++ b/.github/workflows/docker-build-and-test.yaml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: Build container run: docker build . - name: Run tests diff --git a/.github/workflows/docker-push.yaml b/.github/workflows/docker-push.yaml index dd82618..f1a585a 100644 --- a/.github/workflows/docker-push.yaml +++ b/.github/workflows/docker-push.yaml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: Build ${NAME}:${GITHUB_SHA::8} image run: docker build . -t "${ORG}/${NAME}:${GITHUB_SHA::8}" --target runtime - name: Build ${NAME}:latest image diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index b313248..f330d49 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -6,7 +6,7 @@ on: linter-version: description: version of golangci-lint type: string - default: v1.53.3 + default: v1.60.3 required: false jobs: golangci-lint: @@ -20,7 +20,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: diff --git a/.github/workflows/release-dependent-repositories.yaml b/.github/workflows/release-dependent-repositories.yaml index 460deae..b01b62b 100644 --- a/.github/workflows/release-dependent-repositories.yaml +++ b/.github/workflows/release-dependent-repositories.yaml @@ -50,7 +50,7 @@ jobs: token: ${{ secrets.token }} - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: Update ${{ matrix.repository }} locally working-directory: networkservicemesh/${{ matrix.repository }} run: | diff --git a/.github/workflows/resolve-conflicts.yaml b/.github/workflows/resolve-conflicts.yaml index f756531..2c52e60 100644 --- a/.github/workflows/resolve-conflicts.yaml +++ b/.github/workflows/resolve-conflicts.yaml @@ -49,7 +49,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: Update version manually run: | branch=${{ inputs.pr_branch_ref }} diff --git a/.github/workflows/sdk-gogenerate.yaml b/.github/workflows/sdk-gogenerate.yaml index 5e08037..390e5a5 100644 --- a/.github/workflows/sdk-gogenerate.yaml +++ b/.github/workflows/sdk-gogenerate.yaml @@ -12,7 +12,7 @@ jobs: version: '3.8.0' - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: Install proto-gen-go run: go install github.com/golang/protobuf/protoc-gen-go@v1.4.2 - name: Install go-syncmap diff --git a/.github/workflows/update-dependent-repositories-gomod.yaml b/.github/workflows/update-dependent-repositories-gomod.yaml index 33fbd87..043d2df 100644 --- a/.github/workflows/update-dependent-repositories-gomod.yaml +++ b/.github/workflows/update-dependent-repositories-gomod.yaml @@ -70,7 +70,7 @@ jobs: token: ${{ secrets.token }} - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: Update ${{ matrix.repository }} locally working-directory: networkservicemesh/${{ matrix.repository }} run: | diff --git a/workflow-templates/cmd-ci.yaml b/workflow-templates/cmd-ci.yaml index 8fa6255..651a3bf 100644 --- a/workflow-templates/cmd-ci.yaml +++ b/workflow-templates/cmd-ci.yaml @@ -30,7 +30,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: Build run: go build -race ./... @@ -46,11 +46,11 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: - version: v1.35.0 + version: v1.60.3 excludeFmtErrorf: name: exclude fmt.Errorf @@ -87,7 +87,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - run: go mod tidy - name: Check for changes run: | @@ -100,7 +100,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - run: go generate ./... - name: Check for changes run: | @@ -125,7 +125,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: Build container run: docker build . - name: Run tests diff --git a/workflow-templates/docker-push.yaml b/workflow-templates/docker-push.yaml index 814ce1e..465b582 100644 --- a/workflow-templates/docker-push.yaml +++ b/workflow-templates/docker-push.yaml @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.20.12 + go-version: 1.23.3 - name: Build ${NAME}:${GITHUB_SHA::8} image run: docker build . -t "${ORG}/${NAME}:${GITHUB_SHA::8}" --target runtime - name: Build ${NAME}:latest image