Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/anilanar/moxci

Notify circleci build artifacts as github status updates.
https://github.com/anilanar/moxci

Last synced: 7 days ago
JSON representation

Notify circleci build artifacts as github status updates.

Awesome Lists containing this project

README

        


Moxci

![CircleCI](https://circleci.com/gh/anilanar/moxci.svg?style=shield)
[![npm version](https://badge.fury.io/js/%40anilanar%2Fmoxci.svg)](https://badge.fury.io/js/%40anilanar%2Fmoxci.svg)

This repository is a fork of [moxci](https://github.com/moxci/moxci). Unlike the original, this one uses status checks instead of posting PR comments.

**Moxci** is a tool that will send [Github commit status](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-status-checks).
It will add a success status. The URL linked to the status is the link to the artifact.

It can be used to send a link of the latest [storybook](https://storybook.js.org/) as a status update..

# :package: Installation

```
yarn add -D @anilanar/moxci
```

# :book: Example

In order to user moxci, you will need to set up a [CircleCI](https://circleci.com/sunset1-0/) project.

In your **Project Settings** -> **Environment Variables**, enter your Circle CI API Token as `CIRCLE_TOKEN`, and Github API Token as `GITHUB_TOKEN`

In your `config.yml` for CircleCI, add commands to specify the path that contains the artifact you'd like to notify.

```yaml
- store_artifacts:
path: path_to_artifacts
- run:
name: Send artifact URL to Github
command: yarn moxci path_to_artifacts/index.html
```