Skip to content

Commit 8fc30e3

Browse files
committed
chore: update gitignore
0 parents  commit 8fc30e3

File tree

7,164 files changed

+637638
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,164 files changed

+637638
-0
lines changed

.github/workflows/test.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
shard: [1, 2]
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: "20"
27+
28+
- name: Install dependencies
29+
run: npm install
30+
31+
- name: install currents
32+
run: npm install @currents/node-test-reporter @currents/cmd
33+
34+
- name: Run tests in shard ${{ matrix.shard }}
35+
run: node --test --test-reporter @currents/node-test-reporter --test-reporter-destination=./report.xml **.test.mjs --shard=${{ matrix.shard }}/2
36+
37+
- name: Convert test results to Currents format
38+
run: npx currents convert --input-format=junit --input-file=./report.xml --framework=node
39+
40+
- name: Upload test results to Currents.dev
41+
# CURRENTS_RECORD_KEY is a secret stored in the repository settings
42+
env:
43+
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
44+
run: |
45+
npx currents upload --project-id DVKGcA --ci-build-id ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
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+
```

node_modules/.bin/browserslist

+156
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/create-jest

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/currents

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/currents-cli

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/esparse

+139
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)