Update go version in workflows and skip coverage report
Some checks failed
Lint PR / main (pull_request) Has been cancelled
Lint / golangci-lint (pull_request) Has been cancelled
Lint / Lint markdown (pull_request) Has been cancelled
Tests / Code Coverage / test-unit (pull_request) Has been cancelled
Tests / Code Coverage / test-integration (pull_request) Has been cancelled
Tests / Code Coverage / test-e2e (pull_request) Has been cancelled
Lint / govulncheck (pull_request) Has been cancelled
Some checks failed
Lint PR / main (pull_request) Has been cancelled
Lint / golangci-lint (pull_request) Has been cancelled
Lint / Lint markdown (pull_request) Has been cancelled
Tests / Code Coverage / test-unit (pull_request) Has been cancelled
Tests / Code Coverage / test-integration (pull_request) Has been cancelled
Tests / Code Coverage / test-e2e (pull_request) Has been cancelled
Lint / govulncheck (pull_request) Has been cancelled
This commit is contained in:
parent
2531e8c089
commit
1bcd9c2aaf
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@ -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
|
||||
|
||||
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@ -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
|
||||
|
||||
27
.github/workflows/test.yml
vendored
27
.github/workflows/test.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user