Skip to content

Commit

Permalink
actions: report test result as opentelemetry traces (#32267)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jul 21, 2022
1 parent a973162 commit 1476d87
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/macos-auditbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && echo "See https://github.com/elastic/beats/issues/29038"
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-xpack-auditbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-xpack-filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-xpack-functionbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-xpack-heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-xpack-metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-xpack-osquerybeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/macos-xpack-packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ jobs:
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1476d87

Please sign in to comment.