https://github.com/scientanl/coverage-actions
Comment coverage difference on PR and save current coverage to an endpoint
https://github.com/scientanl/coverage-actions
Last synced: 3 months ago
JSON representation
Comment coverage difference on PR and save current coverage to an endpoint
- Host: GitHub
- URL: https://github.com/scientanl/coverage-actions
- Owner: ScientaNL
- License: mit
- Created: 2022-12-07T11:20:43.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2023-05-11T12:53:45.000Z (about 3 years ago)
- Last Synced: 2025-02-01T00:18:33.929Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://scienta.nl
- Size: 417 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# coverage-actions
Comment coverage difference on PR and save current coverage to endpoint




#### Dependencies
- 
- 
- 
- 
- 
- 
#### Dev dependencies
- 
- 
- 
### Build
To build the dist file run:
```bash
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`