mirror of
https://github.com/esimov/caire.git
synced 2025-09-26 20:41:14 +08:00
ci: foresight test kit action
This commit is contained in:
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
@@ -2,9 +2,13 @@ name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
|
||||
env:
|
||||
FORESIGHT_UPLOADER_SIGNER_URL: https://upload.service.runforesight.us
|
||||
WORKFLOW_TELEMETRY_BASE_URL: https://api.service.runforesight.us
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -18,6 +22,11 @@ jobs:
|
||||
env:
|
||||
GO111MODULE: "on"
|
||||
steps:
|
||||
- name: Collect Workflow Telemetry
|
||||
if: always()
|
||||
uses: runforesight/foresight-workflow-kit-action@v1
|
||||
with:
|
||||
api_key: ${{ secrets.FORESIGHT_PROJECT_WALL_APIKEY }}
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
@@ -44,21 +53,18 @@ jobs:
|
||||
- name: Download Go modules
|
||||
run: go mod download
|
||||
|
||||
- name: Run Tests
|
||||
- name: Build project
|
||||
id: makefile
|
||||
run: |
|
||||
make test
|
||||
- name: Collect Workflow Telemetry
|
||||
uses: runforesight/foresight-workflow-kit-action@v1
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
api_key: c72ba9d2-2e6f-4d55-829b-13f0eb98436e
|
||||
|
||||
- name: Analyze Test and/or Coverage Results
|
||||
if: always()
|
||||
uses: runforesight/foresight-test-kit-action@v1
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
api_key: c72ba9d2-2e6f-4d55-829b-13f0eb98436e
|
||||
test_format: JSON
|
||||
test_framework: GOLANG
|
||||
test_path: ./...
|
||||
coverage_format: GOLANG
|
||||
api_key: ${{ secrets.FORESIGHT_PROJECT_WALL_APIKEY }}
|
||||
test_framework: golang
|
||||
test_format: json
|
||||
test_path: ./test-report.json
|
||||
coverage_format: golang
|
||||
coverage_path: |
|
||||
coverage.out
|
Reference in New Issue
Block a user