You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This folder contains a suite of tests designed to validate the functionality of the Node Test Reporter and ensure its compatibility with the Currents API.
2
-
3
-
## Usage
4
-
5
-
1. Install the dependencies:
6
-
```bash
7
-
npm install
8
-
```
9
-
2. Run the tests:
10
-
```bash
11
-
npm run test
12
-
```
13
-
3. Convert the report to Currents format:
14
-
```bash
15
-
npm run convert
16
-
```
17
-
4. Report the results to the Currents API:
18
-
```bash
19
-
CURRENTS_PROJECT_ID=xxx CURRENTS_RECORD_KEY=xxx npm run report
20
-
```
1
+
# Currents + Node.js on GitHub Actions Example
2
+
3
+
## About
4
+
5
+
This repository demonstrates how to report test results generated by Node.js to [Currents](https://currents.dev) - a cloud platform for debugging, troubleshooting and analyzing CI tests.
6
+
7
+
8
+
## How to reproduce
9
+
10
+
Follow the steps to reproduce this example:
11
+
12
+
- Create an account at https://app.currents.dev and obtain Project Id and Record Key
13
+
- Save the Record Key as [Repository Secret](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions)`CURRENTS_RECORD_KEY`
14
+
- Add `@currents/cmd` and `@currents/node-test-reporter` as a dependency
0 commit comments