1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
catalog/task/prettier/0.1
vinamra28 e763a4473e Use latest git-clone in Task's tests
With git-clone version 0.8 and onwards, it started running as non-root
and GKE clusters were having some issues, so, we temporarily moved all
tasks to use git-clone version 0.7. Ref: https://github.com/tektoncd/catalog/pull/1079

Since we have now moved to kind clusters in our CI, this issue is now
resolved and thus moving all tasks to use latest version of git-clone

Signed-off-by: vinamra28 <jvinamra776@gmail.com>
2023-09-22 09:32:22 +01:00
..
tests Use latest git-clone in Task's tests 2023-09-22 09:32:22 +01:00
prettier.yaml Add linux/amd64 platform annotation to the rest of the tasks 2021-10-29 17:08:38 +01:00
README.md Add linux/amd64 platform annotation to the rest of the tasks 2021-10-29 17:08:38 +01:00

Prettier Tasks

This Task is for running Prettier code formatter against the provided source code in the Workspace. By default this Task will check the format of files in the root of your Workspace.

Workspaces

  • source: A workspace for this Task to fetch the source the code.

Parameters

  • args: Prettier arguments used to run Prettier. See Prettier CLI for the arguments. (default: --check .)
  • prettierImage: Prettier image used to run Prettier. (default: elnebuloso/prettier:latest)

Platforms

The Task can be run on linux/amd64 platform.

Usage

The following pipeline uses the prettier-check Task to format the file build.yaml from catalog/golang. The pipeline has two tasks: the git-clone Task is the first task to clone the repository to the "shared-workspace"; the prettier-check Task runs after git-clone Task to format the source code.