Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldis committed Jul 16, 2024
1 parent ef76fcd commit daf4551
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Currents + Jest on GitHub Actions Example

This repository demonstrates how to report test results generated by Jest to [Currents](https://currents.dev) - - a cloud platform for debugging, troubleshooting and analysing CI tests.

This repo runs Jest tests in parallel using 2 shards and GitHub actions matrix.

Follow the steps to reproduce this example:

- Create an account at https://app.currents.dev and obtain Project Id and Record Key
- Save the Record Key as [Repository Secret](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions) `CURRENTS_RECORD_KEY`
- Add `@currents/cmd` and `@currents/jest` as a dependency
- Add `@currents/jest` as Jest reporter (see `./jest.config.js`)
- Configure GitHub actions [workflow](.github/workflows/test.yml):
- run the tests: `npm run test`
- upload the test results to Currents: `npx currents upload ...`

0 comments on commit daf4551

Please sign in to comment.