Skip to content

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

License

Notifications You must be signed in to change notification settings

ScientaNL/coverage-actions

Repository files navigation

coverage-actions

Comment coverage difference on PR and save current coverage to endpoint

GitHub release (release name instead of tag name) GitHub GitHub Repo stars GitHub Org's stars

Dependencies

  • GitHub package.json dependency version (prod)
  • GitHub package.json dependency version (prod)
  • GitHub package.json dependency version (prod)
  • GitHub package.json dependency version (prod)
  • GitHub package.json dependency version (prod)
  • GitHub package.json dependency version (prod)

Dev dependencies

  • GitHub package.json dependency version (dev dep on branch)
  • GitHub package.json dependency version (dev dep on branch)
  • GitHub package.json dependency version (prod)

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

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •