RMEngels / coverage-actions

Comment coverage difference on PR and save current coverage to an endpoint

Home Page:https://scienta.nl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coverage-actions

Comment coverage difference on PR and save current coverage to endpoint

Build

To build the dist file run:

  npm run build

This coverts the TS files to JS and bundles them into the dist/index.js file

Secrets

To function with the current adapters you need to input env variables (presumably with secrets). these are

JsonblobAdapter

  • JSONBLOB_ID

DynamoDBAdapter

  • AWS_REGION
  • AWS_SECRET_ACCESS_KEY
  • AWS_ACCESS_KEY_ID
  • COVERAGE_STORAGE_ID

Storage adapters

To each their own; If you want to extend the functionality of this action with your own storage method you kan do it in the form of a new StorageAdapter Currently the available storage adapters are:

  • DynamoDBAdapter
  • JsonblobAdapter

A new adapter must implement the Adapter interface to insure compatibility with the current structure. All credentials must be gotten through the environment. Don't forget to append to the AdapterType and adapterMap

About

Comment coverage difference on PR and save current coverage to an endpoint

https://scienta.nl


Languages

Language:TypeScript 100.0%