Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 64f8102

Browse files
chore: clean files
1 parent 50e7691 commit 64f8102

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@ jobs:
1414
uses: actions/setup-node@v3
1515
with:
1616
node-version: ${{ matrix.node }}
17-
- run: npm install
18-
- run: npm link
17+
- name: Install packages
18+
run: npm install
19+
- name: Symlink CLI package
20+
run: npm link
1921
- name: Run tests
2022
run: npm run test
2123
env:
22-
DD_CIVISIBILITY_AGENTLESS_ENABLED: ${{ secrets.DD_CIVISIBILITY_AGENTLESS_ENABLED }}
23-
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
24+
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
25+
DD_API_KEY: ${{ secrets.DD_API_KEY }}
26+
DD_ENV: ci
27+
DD_SERVICE: codiga-cli
28+
NODE_OPTIONS: -r dd-trace/ci/init

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,18 @@ jobs:
1212
with:
1313
node-version: '16.x'
1414
registry-url: 'https://registry.npmjs.org'
15-
- run: npm install
16-
- run: npm link
17-
- run: npm run test
15+
- name: Install packages
16+
run: npm install
17+
- name: Symlink CLI package
18+
run: npm link
19+
- name: Run tests
20+
run: npm run test
21+
env:
22+
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
23+
DD_API_KEY: ${{ secrets.DD_API_KEY }}
24+
DD_ENV: ci
25+
DD_SERVICE: codiga-cli
26+
NODE_OPTIONS: -r dd-trace/ci/init
1827
- run: npm publish
1928
env:
2029
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"access": "public"
1616
},
1717
"scripts": {
18-
"test": "cross-env NODE_ENV=test NODE_OPTIONS=\"-r dd-trace/ci/init\" DD_ENV=ci DD_SERVICE=codiga-cli jest"
18+
"test": "cross-env NODE_ENV=test jest"
1919
},
2020
"keywords": [
2121
"Codiga",

0 commit comments

Comments
 (0)