Skip to main content

Try Dagger

In this guide, you will add a Check to an example project. You will fix a failure and run the Check successfully.

Requirements

Clone the example project

Clone the repository and open its directory:

git clone --depth 1 https://github.com/dagger/hello-dagger.git
cd hello-dagger

Add a Check

Install the official Prettier module:

dagger install github.com/dagger/prettier

The command creates dagger.toml. It also adds prettier:check to the workspace.

Run the Check

dagger check

prettier:check reports unformatted files. The command exits with an error.

Fix the formatting

Run Prettier and apply its changeset:

dagger api call prettier write -y

Verify the result

Run the Check again:

dagger check

You are done when the output shows that prettier:check passed.