An open API service indexing awesome lists of open source software.

https://github.com/bruin-data/setup-bruin

Official action to install Bruin CLI in Github Actions.
https://github.com/bruin-data/setup-bruin

actions cli data-engineering data-management golang

Last synced: about 1 month ago
JSON representation

Official action to install Bruin CLI in Github Actions.

Awesome Lists containing this project

README

        

# `setup-bruin`
This [Action](https://github.com/marketplace/actions/bruin-setup) installs the [`bruin`](https://github.com/bruin-data/bruin) CLI in your GitHub Actions pipelines so that it can be used by other Bruin Actions:

After `setup-bruin` is run, the `bruin` command is available to other Actions in the pipeline's `PATH`. You can also use the `bruin` command directly inside of workflow steps.

## Usage

Here's an example usage of `setup-bruin`:

```yaml
steps:
# Run `git checkout`
- uses: actions/checkout@v2
# Install the `bruin` CLI
- uses: bruin-data/setup-bruin@main
# Ensure that `bruin` is installed
- run: bruin --version
```

## Configuration

### Input

You can configure `setup-bruin` with these parameters:

| Parameter | Description | Default |
|:---------------|:---------------------------------------------------|:-------------------|
| `version` | The version of the [`bruin`](https://github.com/bruin-data/bruin) to install | [`latest`](https://github.com/bruin-data/bruin/releases) |

> These parameters are derived from [`action.yml`](./action.yml).

#### Version

If `version` is unspecified, the latest version of `bruin` is installed:

```yaml
steps:
- uses: actions/checkout@v2
# Installs latest
- uses: bruin-data/setup-bruin@main
- run: bruin --version
```

Use the `version` parameter to pin to a specific version:

```yaml
steps:
- uses: actions/checkout@v2
# Installs version 0.11.52
- uses: bruin-data/setup-bruin@main
with:
version: 0.11.52
# Should output 0.11.52
- run: bruin --version
```

To resolve the latest release from GitHub, you can specify `latest`, but this is **not**
recommended:

```yaml
steps:
- uses: actions/checkout@v2
- uses: bruin-data/setup-bruin@main
with:
version: latest
- run: bruin --version
```

Example
```yaml
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Installs latest
- uses: bruin-data/setup-bruin@main
- run: bruin validate ./bruin-pipeline/
name: Validate Pipeline
- run: bruin format ./bruin-pipeline/
name: Format Pipeline
- name: Lineage
run: |
bruin lineage bruin-pipeline/assets/example.sql
bruin lineage bruin-pipeline/assets/pythonsample/country_list.py
```