Enable Foresight on Windows
@@ -51,6 +51,10 @@ jobs:
runs-on: windows-latest
steps:
+ - name: Collect Workflow Telemetry
+ uses: runforesight/foresight-workflow-kit-action@v1
+ if: success() || failure()
+
- name: Set up Go 1.19
uses: actions/setup-go@v3.3.1
with:
@@ -74,3 +78,16 @@ jobs:
run: make ci
env:
GOA_BRANCH: ${{ steps.extract_branch.outputs.branch }}
+
+ - name: Compute code coverage
+ run: go test -v -json -coverprofile=coverage.out ./...> ./test-report.json || true
+
+ - name: Analyze Test and/or Coverage Results
+ uses: runforesight/foresight-test-kit-action@v1
+ if: success() || failure()
+ with:
+ test_format: JSON
+ test_framework: GOLANG
+ test_path: "./test-report.json"
+ coverage_format: GOLANG
+ coverage_path: ./coverage.out
\ No newline at end of file
