separate coveralls and refine workflow triggers
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: 1.25
|
go-version: 1.25
|
||||||
|
|
||||||
- name: Run Unit tests
|
- name: Run Unit tests with coverage
|
||||||
run: |
|
run: |
|
||||||
go test -covermode atomic -coverprofile=coverage.out ./...
|
go test -covermode atomic -coverprofile=coverage.out ./...
|
||||||
grep -v -E "(main|_gen).go" coverage.out > coverage.filtered.out
|
grep -v -E "(main|_gen).go" coverage.out > coverage.filtered.out
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
name: Generate check
|
name: Generate check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, reopened, synchronize]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-changes:
|
check-changes:
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
echo "has_gen_changes=false" >> $GITHUB_OUTPUT
|
echo "has_gen_changes=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check-generate:
|
verify-generate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: check-changes
|
needs: check-changes
|
||||||
if: needs.check-changes.outputs.has_gen_changes == 'true'
|
if: needs.check-changes.outputs.has_gen_changes == 'true'
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
echo "has_go_changes=false" >> $GITHUB_OUTPUT
|
echo "has_go_changes=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tests:
|
run-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: check-changes
|
needs: check-changes
|
||||||
if: needs.check-changes.outputs.has_go_changes == 'true'
|
if: needs.check-changes.outputs.has_go_changes == 'true'
|
||||||
|
|||||||
Reference in New Issue
Block a user