Skip to content

Commit

Permalink
add to repo and action tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed May 8, 2024
1 parent d3f2395 commit 327cc61
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/actions/action_tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,22 @@ runs:
breakpoint-id: trunk-plugins-action-tests
shell: bash
working-directory: ${{ inputs.path }}
trunk-token: ${{ inputs.trunk-token }}
trunk-token: ${{ inputs.trunk-token }}
org: trunk-staging-org
run:
npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --passWithNoTests --ci
env:
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }}
PLUGINS_TEST_CLI_PATH: ${{ env.CLI_PATH }}

- name: Upload results
# TODO(Tyler): Add upload on Windows once the action supports it.
if: "!cancelled() && runner.os != 'Windows'"
uses: trunk-io/analytics-uploader@main
with:
junit-paths: junit.xml
org-slug: trunk-staging-org
token: ${{ inputs.trunk-token }}
continue-on-error: true
env:
TRUNK_PUBLIC_API_ADDRESS: https://api.trunk-staging.io
2 changes: 1 addition & 1 deletion .github/actions/tool_tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inputs:
required: false
default: tools --
trunk-token:
description: CI debugger api token
description: CI debugger api token (org token)
required: true
ref-type:
description: release or main
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/repo_tests.reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,14 @@ jobs:
env:
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }}
PLUGINS_TEST_CLI_PATH: ${{ inputs.cli-path }}

- name: Upload results
if: "!cancelled()"
uses: trunk-io/analytics-uploader@main
with:
junit-paths: junit.xml
org-slug: trunk-staging-org
token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}
continue-on-error: true
env:
TRUNK_PUBLIC_API_ADDRESS: https://api.trunk-staging.io

0 comments on commit 327cc61

Please sign in to comment.