Skip to content

Commit f005f32

Browse files
committed
Update foresight workflow
1 parent aaa61c5 commit f005f32

File tree

3 files changed

+26
-403
lines changed

3 files changed

+26
-403
lines changed

.github/workflows/foresight.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14+
15+
- name: Collect Workflow Telemetry
16+
uses: runforesight/foresight-workflow-kit-action@v1
17+
with:
18+
api_key: ${{ secrets.FORESIGHT_API_KEY }}
19+
1420
- name: Checkout
1521
uses: actions/checkout@v2
1622
with:
@@ -50,16 +56,12 @@ jobs:
5056
- name: Run maven
5157
run: mvn clean install
5258

53-
- name: Foresight Test Report Uploader
54-
if: always()
55-
uses: actions/upload-artifact@v2
56-
with:
57-
name: test-result-junit
58-
path: target/
59-
60-
- name: Foresight Coverage Report Uploader
59+
- name: Analyze Test and/or Coverage Results
6160
if: always()
62-
uses: actions/upload-artifact@v2
61+
uses: thundra-io/foresight-test-kit-action@v1
6362
with:
64-
name: coverage-artifact
65-
path: target/site/jacoco/*.xml
63+
api_key: ${{ secrets.FORESIGHT_API_KEY }}
64+
test_framework: junit
65+
test_path: "./*/target/surefire-reports/**"
66+
coverage_format: jacoco/xml
67+
coverage_path: "./*/target/site/jacoco/*.xml"

.github/workflows/merge_upstream.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
3636
git checkout ${{ env.BRANCH_NAME }}
3737
38+
git rm -f .github/workflows/*
39+
git rm -f README.md
40+
3841
git remote set-url origin "https://x-access-token:${{ env.GITHUB_TOKEN }}@github.com/${{ env.ORIGIN_PATH }}"
3942
git commit -am "Merge upstream" || true
4043
git push -f -u origin ${{ env.BRANCH_NAME }}

0 commit comments

Comments
 (0)