feature/epic0-foundation #1

Merged
master merged 20 commits from feature/epic0-foundation into main 2025-11-05 13:44:59 +01:00
Showing only changes of commit 6b0ba2edc7 - Show all commits

View File

@@ -36,11 +36,15 @@ jobs:
- name: Check for test files - name: Check for test files
id: check-tests id: check-tests
run: | run: |
if find . -name "*_test.go" -not -path "./vendor/*" -not -path "./.git/*" | grep -q .; then echo "Checking for test files..."
TEST_FILES=$(find . -name "*_test.go" -not -path "./vendor/*" -not -path "./.git/*" 2>/dev/null || true)
if [ -n "$TEST_FILES" ]; then
echo "Found test files:"
echo "$TEST_FILES"
echo "tests_exist=true" >> $GITHUB_OUTPUT echo "tests_exist=true" >> $GITHUB_OUTPUT
else else
echo "tests_exist=false" >> $GITHUB_OUTPUT
echo "No test files found. Skipping test execution." echo "No test files found. Skipping test execution."
echo "tests_exist=false" >> $GITHUB_OUTPUT
fi fi
- name: Run tests - name: Run tests
@@ -51,7 +55,7 @@ jobs:
- name: Upload coverage - name: Upload coverage
if: steps.check-tests.outputs.tests_exist == 'true' if: steps.check-tests.outputs.tests_exist == 'true'
uses: codecov/codecov-action@v4 uses: codecov/codecov-action@v3
with: with:
file: ./coverage.out file: ./coverage.out
fail_ci_if_error: false fail_ci_if_error: false
@@ -107,7 +111,7 @@ jobs:
run: go build -v -o bin/platform ./cmd/platform run: go build -v -o bin/platform ./cmd/platform
- name: Upload build artifacts - name: Upload build artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3
with: with:
name: platform-binary name: platform-binary
path: bin/platform path: bin/platform