mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-24 06:15:46 +00:00
f4708d478e
At this moment all tasks which can be executed on linux/s390x or linux/ppc64le are tested and labelled accordingly. The rest of the tasks can be labelled as `linux/amd64`, which is default platform and where tasks are already tested via default PR testing cycle. Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
1.1 KiB
1.1 KiB
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.