forked from inception-health/otel-export-trace-action
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- **export at the end of file** - **move github to subfolder** - **tests: Add a replay client** - **Migrate to ESM** - **Migrate from ncc to rollup**
- Loading branch information
1 parent
607e6cc
commit 5740bbe
Showing
38 changed files
with
109,295 additions
and
127,341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GH_TOKEN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,26 @@ git clone [email protected]:corentinmusard/otel-cicd-action.git | |
cd otel-cicd-action | ||
``` | ||
|
||
Setup precommit hook, install dependencies and run tests: | ||
Setup precommit hook, install dependencies: | ||
|
||
```sh | ||
npm run prepare | ||
npm i | ||
npm run test | ||
``` | ||
|
||
## Contributing code | ||
Fill `.env.test` based on `.env.test.example`. | ||
|
||
`GH_TOKEN` can be found by running `gh auth token` | ||
|
||
## Testing | ||
|
||
We use a record/replay octokit client to make testing easier. | ||
|
||
`npm run test:record` will record all the request made with a real octokit client. | ||
|
||
`npm run test` will replay the recorded requests. | ||
|
||
## Pushing code | ||
|
||
Be sure to run the following command before pushing code. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.