Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions flaky-tests/get-started/ci-providers/github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Upload Test Results to Trunk.io
if: ${{ !cancelled() }} # Upload the results even if the tests fail
continue-on-error: true # don't fail this job if the upload fails
uses: trunk-io/analytics-uploader@v1
uses: trunk-io/analytics-uploader@v2
with:
junit-paths: **/junit.xml
org-slug: <TRUNK_ORG_URL_SLUG>
Expand All @@ -85,7 +85,7 @@ jobs:
- name: Upload Test Results to Trunk.io
if: ${{ !cancelled() }} # Upload the results even if the tests fail
continue-on-error: true # don't fail this job if the upload fails
uses: trunk-io/analytics-uploader@v1
uses: trunk-io/analytics-uploader@v2
with:
xcresult-path: ./test-results.xcresult
org-slug: <TRUNK_ORG_URL_SLUG>
Expand All @@ -104,7 +104,7 @@ jobs:
- name: Upload Test Results to Trunk.io
if: ${{ !cancelled() }} # Upload the results even if the tests fail
continue-on-error: true # don't fail this job if the upload fails
uses: trunk-io/analytics-uploader@v1
uses: trunk-io/analytics-uploader@v2
with:
bazel-bep-path: ./build_events.json
org-slug: <TRUNK_ORG_URL_SLUG>
Expand Down Expand Up @@ -156,7 +156,7 @@ Here's an example file.

- name: Upload test results
if: always()
uses: trunk-io/analytics-uploader@v1
uses: trunk-io/analytics-uploader@v2
with:
junit-paths: <TEST OUTPUT PATH>
org-slug: my-trunk-org-slug
Expand All @@ -180,7 +180,7 @@ This will override the response code of the test command. Make sure to set `cont
uses: actions/checkout@v3

- name: Run tests and upload results
uses: trunk-io/analytics-uploader@v1
uses: trunk-io/analytics-uploader@v2
with:
junit-paths: <TEST OUTPUT PATH>
run: <COMMAND TO RUN TESTS> # command to run tests goes here
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:

- name: Upload test results
if: always()
uses: trunk-io/analytics-uploader@v1
uses: trunk-io/analytics-uploader@v2
with:
junit-paths: <TEST OUTPUT PATH>
org-slug: my-trunk-org-slug
Expand Down Expand Up @@ -318,7 +318,7 @@ jobs:

- name: Upload test results
if: always()
uses: trunk-io/analytics-uploader@v1
uses: trunk-io/analytics-uploader@v2
with:
junit-paths: junit.xml
org-slug: my-trunk-org-slug
Expand Down
2 changes: 1 addition & 1 deletion flaky-tests/get-started/multiple-repositories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Upload Test Results to Trunk.io
if: ${{ !cancelled() }}
continue-on-error: true
uses: trunk-io/analytics-uploader@v1
uses: trunk-io/analytics-uploader@v2
with:
junit-paths: "**/junit.xml"
org-slug: ${{ vars.TRUNK_ORG_SLUG }}
Expand Down
4 changes: 2 additions & 2 deletions flaky-tests/quarantining/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Here's an example file.

- name: Upload test results
if: always()
uses: trunk-io/analytics-uploader@v1
uses: trunk-io/analytics-uploader@v2
with:
junit-paths: <TEST OUTPUT PATH>
org-slug: my-trunk-org-slug
Expand All @@ -183,7 +183,7 @@ jobs:
uses: actions/checkout@v3

- name: Run tests and upload results
uses: trunk-io/analytics-uploader@v1
uses: trunk-io/analytics-uploader@v2
with:
junit-paths: <TEST OUTPUT PATH>
run: <COMMAND TO RUN TESTS>
Expand Down