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
|
||||
run: go test -v -race -coverprofile=coverage.out ./...
|
||||
|
||||
- name: Upload coverage
|
||||
uses: codecov/codecov-action@v4
|
||||
if: always()
|
||||
with:
|
||||
file: ./coverage.out
|
||||
flags: backend
|
||||
name: backend-coverage
|
||||
# - name: Upload coverage
|
||||
# uses: codecov/codecov-action@v4
|
||||
# if: always()
|
||||
# with:
|
||||
# file: ./coverage.out
|
||||
# flags: backend
|
||||
# name: backend-coverage
|
||||
|
||||
lint:
|
||||
name: Lint Code
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true # Allow failure until golangci-lint supports Go 1.25
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -71,7 +72,13 @@ jobs:
|
||||
with:
|
||||
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
|
||||
uses: golangci/golangci-lint-action@v4
|
||||
with:
|
||||
version: latest
|
||||
run: |
|
||||
golangci-lint --version
|
||||
golangci-lint run --timeout=5m
|
||||
|
||||
Reference in New Issue
Block a user