From 1bcd9c2aaff343c83ff0f409002bc503de55ac2c Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 3 Nov 2025 16:15:43 +0530 Subject: [PATCH] Update go version in workflows and skip coverage report --- .github/workflows/lint.yml | 4 ++-- .github/workflows/release.yml | 16 +++++++++++----- .github/workflows/test.yml | 27 ++++++++++++++------------- 3 files changed, 27 insertions(+), 20 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1a18a68..7af8852 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: 1.22.4 + go-version: 1.23.2 - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v4 @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.22.4 + go-version: 1.23.2 cache: true cache-dependency-path: go.sum - uses: https://github.com/technote-space/get-diff-action@v6.1.2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d37dc10..9c07ae3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,17 @@ name: Release + +# Disabled for the gitea fork - needs a GITHUB_TOKEN # This workflow helps with creating releases. # This job will only be triggered when a tag (vX.X.x) is pushed +# on: +# push: +# # Sequence of patterns matched against refs/tags +# tags: +# - "v[0-9]+.*" # Push events to matching v0.*, v1.*, etc., i.e. v1.0, v2.15.10, v1.2.3-beta.0 + +# Only manual trigger on: - push: - # Sequence of patterns matched against refs/tags - tags: - - "v[0-9]+.*" # Push events to matching v0.*, v1.*, etc., i.e. v1.0, v2.15.10, v1.2.3-beta.0 + workflow_dispatch: permissions: contents: read @@ -20,7 +26,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: 1.22.4 + go-version: 1.23.2 - name: Unshallow run: git fetch --prune --unshallow - name: Create release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c5c62c7..978cd63 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.22.4 + go-version: 1.23.2 cache: true cache-dependency-path: go.sum - uses: https://github.com/technote-space/get-diff-action@v6.1.2 @@ -35,23 +35,24 @@ jobs: run: | go work init make test-unit - - name: Test Coverage - run: | - go work init ||: - make test-cover - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - with: - files: cover.out + # Disabled for the gitea fork - Test coverage report not required + # - name: Test Coverage + # run: | + # go work init ||: + # make test-cover + # - name: Upload coverage reports to Codecov + # uses: codecov/codecov-action@v4 + # env: + # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + # with: + # files: cover.out test-integration: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.22.4 + go-version: 1.23.2 cache: true cache-dependency-path: go.sum - uses: https://github.com/technote-space/get-diff-action@v6.1.2 @@ -80,7 +81,7 @@ jobs: - uses: actions/setup-go@v5 if: env.GIT_DIFF with: - go-version: 1.22.4 + go-version: 1.23.2 cache: true # In this step, this action saves a list of existing images, the cache is