Update Gitea workflow to allow golangci-lint failures and install from source for Go 1.25 compatibility. Comment out coverage upload step.
This commit is contained in:
@@ -50,17 +50,18 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -v -race -coverprofile=coverage.out ./...
|
run: go test -v -race -coverprofile=coverage.out ./...
|
||||||
|
|
||||||
- name: Upload coverage
|
# - name: Upload coverage
|
||||||
uses: codecov/codecov-action@v4
|
# uses: codecov/codecov-action@v4
|
||||||
if: always()
|
# if: always()
|
||||||
with:
|
# with:
|
||||||
file: ./coverage.out
|
# file: ./coverage.out
|
||||||
flags: backend
|
# flags: backend
|
||||||
name: backend-coverage
|
# name: backend-coverage
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
name: Lint Code
|
name: Lint Code
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: true # Allow failure until golangci-lint supports Go 1.25
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -71,7 +72,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: '1.25'
|
go-version: '1.25'
|
||||||
|
|
||||||
|
- name: Install golangci-lint from source
|
||||||
|
run: |
|
||||||
|
# Install golangci-lint from source using Go 1.25 to ensure compatibility
|
||||||
|
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||||
|
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Run golangci-lint
|
- name: Run golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v4
|
run: |
|
||||||
with:
|
golangci-lint --version
|
||||||
version: latest
|
golangci-lint run --timeout=5m
|
||||||
|
|||||||
Reference in New Issue
Block a user