From 6eaa00494618e2e9ddccf602ae998f35b660aec3 Mon Sep 17 00:00:00 2001 From: Yongseok Date: Thu, 2 May 2024 22:43:42 +0900 Subject: [PATCH] [#186] Change error log level to info log --- .github/workflows/main.yml | 28 ++++++++++++++++------------ lib/utils/logger.js | 4 ++-- package.json | 5 +---- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b9f82eaa..55bb28a9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: CI # Controls when the action will run. -on: [push, pull_request_target] +on: [push, pull_request] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -21,23 +21,27 @@ jobs: name: Node ${{ matrix.node_version }} on ubuntu-latest steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: setup node environment - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node_version }} - run: npm install - run: npm test - - name: Lint - run: npm run lint - - uses: jwgmeligmeyling/checkstyle-github-action@master - with: - path: '**/checkstyle-result.xml' - github-token: ${{ secrets.GITHUB_TOKEN }} + # - name: Lint + # run: npm run lint + # - uses: jwgmeligmeyling/checkstyle-github-action@master + # with: + # path: '**/checkstyle-result.xml' + # github-token: ${{ secrets.GITHUB_TOKEN }} - name: Coverage run: npm run coverage + # ... Generate LCOV files or download it from a different job + - name: Setup LCOV + uses: hrishikesh-kadam/setup-lcov@v1 - name: Report coverage - uses: romeovs/lcov-reporter-action@v0.2.21 + uses: zgosalvez/github-actions-report-lcov@v3 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - lcov-file: ./coverage/lcov.info + coverage-files: coverage/lcov.info + github-token: ${{ secrets.ACTIONS_TOKEN }} + update-comment: true \ No newline at end of file diff --git a/lib/utils/logger.js b/lib/utils/logger.js index 4b85da74..707a13ef 100644 --- a/lib/utils/logger.js +++ b/lib/utils/logger.js @@ -52,11 +52,11 @@ class Logger { } warn() { - this.logger.warn.apply(null, arguments) + this.logger.info.apply(null, arguments) } error() { - this.logger.error.apply(null, arguments) + this.logger.info.apply(null, arguments) } } diff --git a/package.json b/package.json index 5e4e94a3..a3a59104 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pinpoint-node-agent", - "version": "0.8.4-next.1", + "version": "0.8.4-next.2", "main": "index.js", "scripts": { "test": "tape ./test/**/*.test.js", @@ -89,8 +89,5 @@ }, "resolutions": { "semver": "^7.5.3" - }, - "volta": { - "node": "16.20.1" } }