-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7df5bb3
commit d10548b
Showing
4 changed files
with
5 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ inputs: | |
required: false | ||
default: actions/ -- | ||
trunk-token: | ||
description: CI debugger api token | ||
description: Test analytics api token | ||
required: true | ||
|
||
runs: | ||
|
@@ -49,7 +49,6 @@ runs: | |
working-directory: ${{ inputs.path }} | ||
|
||
- name: Run action tests | ||
if: runner.os == 'Windows' | ||
run: npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --passWithNoTests --ci | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
|
@@ -58,22 +57,6 @@ runs: | |
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }} | ||
PLUGINS_TEST_CLI_PATH: ${{ env.CLI_PATH }} | ||
|
||
- name: Run action tests | ||
if: runner.os != 'Windows' | ||
uses: trunk-io/[email protected] | ||
with: | ||
breakpoint-id: trunk-plugins-action-tests | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
trunk-token: ${{ inputs.trunk-token }} | ||
org: trunk-staging-org | ||
run: | ||
npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --passWithNoTests --ci | ||
env: | ||
JEST_SUITE_NAME: Action Tests | ||
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }} | ||
PLUGINS_TEST_CLI_PATH: ${{ env.CLI_PATH }} | ||
|
||
- name: Upload results | ||
# TODO(Tyler): Add upload on MacOS/Windows once the action supports it. | ||
if: "!cancelled() && runner.os == 'Linux'" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ inputs: | |
description: Token to login for sourcery test | ||
required: true | ||
trunk-token: | ||
description: CI debugger api token (org token) | ||
description: Test analytics api token (org token) | ||
required: true | ||
ref-type: | ||
description: release or main | ||
|
@@ -92,7 +92,6 @@ runs: | |
working-directory: ${{ inputs.path }} | ||
|
||
- name: Run plugin tests | ||
if: runner.os == 'Windows' | ||
run: npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --ci | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
|
@@ -107,27 +106,6 @@ runs: | |
JEST_JUNIT_SUITE_NAME: | ||
"{title} ${{ runner.os }} ${{ inputs.ref-type }} ${{ inputs.linter-version }}" | ||
|
||
- name: Run plugin tests | ||
if: runner.os != 'Windows' | ||
# trunk-ignore(semgrep/yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha.third-party-action-not-pinned-to-commit-sha) | ||
uses: trunk-io/[email protected] | ||
with: | ||
breakpoint-id: trunk-plugins-linter-tests | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
trunk-token: ${{ inputs.trunk-token }} | ||
org: trunk-staging-org | ||
run: npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --ci --runInBand | ||
env: | ||
PLUGINS_TEST_LINTER_VERSION: ${{ inputs.linter-version }} | ||
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }} | ||
PLUGINS_TEST_CLI_PATH: ${{ env.CLI_PATH }} | ||
SOURCERY_TOKEN: ${{ inputs.sourcery-token }} | ||
DEBUG: Driver:nixpkgs-fmt:*, Driver:eslint:* | ||
JEST_SUITE_NAME: Linter Tests | ||
JEST_JUNIT_SUITE_NAME: | ||
"{title} ${{ runner.os }} ${{ inputs.ref-type }} ${{ env.JEST_LINTER_VERSION }}" | ||
|
||
- name: Upload results | ||
# TODO(Tyler): Add upload on MacOS/Windows once the action supports it. | ||
if: "!cancelled() && runner.os == 'Linux'" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ inputs: | |
required: false | ||
default: tools -- | ||
trunk-token: | ||
description: CI debugger api token (org token) | ||
description: Test analytics api token (org token) | ||
required: true | ||
ref-type: | ||
description: release or main | ||
|
@@ -65,7 +65,6 @@ runs: | |
working-directory: ${{ inputs.path }} | ||
|
||
- name: Run plugin tests | ||
if: runner.os == 'Windows' | ||
run: npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --ci | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
|
@@ -75,23 +74,6 @@ runs: | |
JEST_SUITE_NAME: Tool Tests | ||
JEST_JUNIT_SUITE_NAME: "{title} ${{ runner.os }} ${{ inputs.ref-type }}" | ||
|
||
- name: Run plugin tests | ||
if: runner.os != 'Windows' | ||
# trunk-ignore(semgrep/yaml.github-actions.security.third-party-action-not-pinned-to-commit-sha.third-party-action-not-pinned-to-commit-sha) | ||
uses: trunk-io/[email protected] | ||
with: | ||
breakpoint-id: trunk-plugins-tool-tests | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
trunk-token: ${{ inputs.trunk-token }} | ||
org: trunk-staging-org | ||
run: npm test ${{ inputs.append-args }} ${{ env.PLATFORM_APPEND_ARGS }} --ci | ||
env: | ||
PLUGINS_TEST_CLI_VERSION: ${{ inputs.cli-version }} | ||
PLUGINS_TEST_CLI_PATH: ${{ env.CLI_PATH }} | ||
JEST_SUITE_NAME: Tool Tests | ||
JEST_JUNIT_SUITE_NAME: "{title} ${{ runner.os }} ${{ inputs.ref-type }}" | ||
|
||
- name: Upload results | ||
# TODO(Tyler): Add upload on MacOS/Windows once the action supports it. | ||
if: "!cancelled() && runner.os == 'Linux'" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters