Fix workflow path filters for repository root structure
Some checks failed
Run Tests / Run Go Tests (push) Successful in 4m21s
Run Tests / Lint Code (push) Failing after 54s

This commit is contained in:
2025-11-21 15:27:02 +03:00
parent 1d37f50604
commit 971c62afc5
2 changed files with 13 additions and 11 deletions

View File

@@ -7,14 +7,20 @@ on:
- production
- develop
paths:
- 'backend/**'
- '**/*.go'
- 'go.mod'
- 'go.sum'
- '.gitea/workflows/test.yml'
pull_request:
branches:
- main
- production
- develop
paths:
- 'backend/**'
- '**/*.go'
- 'go.mod'
- 'go.sum'
- '.gitea/workflows/test.yml'
jobs:
test:
@@ -34,23 +40,21 @@ jobs:
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('backend/go.sum') }}
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
working-directory: backend
run: go mod download
- name: Run tests
working-directory: backend
run: go test -v -race -coverprofile=coverage.out ./...
- name: Upload coverage
uses: codecov/codecov-action@v4
if: always()
with:
file: ./backend/coverage.out
file: ./coverage.out
flags: backend
name: backend-coverage
@@ -71,4 +75,3 @@ jobs:
uses: golangci/golangci-lint-action@v4
with:
version: latest
working-directory: backend