Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluentci-io/moon-plugin
Set up your CI/CD Pipeline with moon
https://github.com/fluentci-io/moon-plugin
continuous-delivery continuous-integration plugin rust wasm webassembly
Last synced: about 1 month ago
JSON representation
Set up your CI/CD Pipeline with moon
- Host: GitHub
- URL: https://github.com/fluentci-io/moon-plugin
- Owner: fluentci-io
- License: mit
- Created: 2024-04-18T10:23:49.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T04:10:12.000Z (5 months ago)
- Last Synced: 2024-07-26T05:23:22.066Z (5 months ago)
- Topics: continuous-delivery, continuous-integration, plugin, rust, wasm, webassembly
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Moon Plugin
[![ci](https://github.com/fluentci-io/moon-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/fluentci-io/moon-plugin/actions/workflows/ci.yml)
This plugin sets up your CI/CD pipeline with [moon](https://moonrepo.dev/moon).
## 🚀 Usage
Add the following command to your CI configuration file:
```bash
fluentci run --wasm moon setup
```## Functions
| Name | Description |
| --------- | --------------------------------------------- |
| setup | Install moon cli |
| setup_env | Setup the environment by installing all tools |
| node | Special Node.js commands. |
| teardown | Teardown the environment by uninstalling all tools and deleting temp files. |
| run | Run all build and test related tasks for the current project. |
| ci | Run all affected projects and tasks in a CI environment. |
| ext | Execute an extension plugin. |
| clean | Clean the workspace and delete any stale or invalid artifacts. |
| docker | Operations for integrating with Docker and Dockerfile(s). |## Code Usage
Add `fluentci-pdk` crate to your `Cargo.toml`:
```toml
[dependencies]
fluentci-pdk = "0.1.9"
```Use the following code to call the plugin:
```rust
use fluentci_pdk::dag;// ...
dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "setup", vec![])?;
```## 📚 Examples
Github Actions:
```yaml
- name: Setup Fluent CI CLI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: moon
args: |
setup
- name: Show Moon version
run: |
type moon
moon --version
```