-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vasek - Tom C <[email protected]>
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Agate CI | ||
|
||
Agate use [Dagger](https://dagger.io/) to handle its CI and local development. | ||
|
||
## Table of Contents | ||
|
||
- [Requirements](#requirements) | ||
- [Dagger commands](#dagger-commands) | ||
- [Open a shell inside a container with the project loaded](#open-a-shell-inside-a-container-with-the-project-loaded) | ||
- [Install Agate binary from local source](#install-agate-binary-from-local-source) | ||
- [Start a PostgreSQL database](#start-a-postgresql-database) | ||
- [Execute CI locally](#execute-ci-locally) | ||
|
||
## Requirements | ||
|
||
- [Dagger CLI installed in your host](https://docs.dagger.io/cli/465058/install) | ||
|
||
## Dagger commands | ||
|
||
💡 You can list all functions using `dagger functions` | ||
|
||
### Open a shell inside a container with the project loaded | ||
|
||
```shell | ||
dagger shell project --entrypoint /bin/sh | ||
``` | ||
|
||
Use it to debug flacky tests or test things inside the CI or container environment. | ||
|
||
### Install Agate binary from local source | ||
|
||
```shell | ||
dagger export binary | ||
``` | ||
|
||
You should see `agate` binary in your current host directory. | ||
|
||
### Start a PostgreSQL database | ||
|
||
```shell | ||
dagger up --native database | ||
``` | ||
|
||
You can either configure the database with flags in the CLI or using your environment. | ||
|
||
💡 Execute `dagger call database --help` to see the flags. | ||
|
||
### Execute CI locally | ||
|
||
```shell | ||
dagger call ci run | ||
``` | ||
|
||
This will build, lint and run unit tests in parallel. | ||
|
||
💡 Execute `dagger call ci --help` to see additional subcommands. |
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