Closed vladsha-dev closed 7 months ago
@vladsha-dev if you look here:
name: Code Coverage
on: [pull_request]
jobs:
base_branch_cov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.base_ref }}
- name: Use Node.js v20.9.0
uses: actions/setup-node@v3
with:
node-version: v20.9.0
- name: Install dependencies
run: yarn
- name: Run test coverage
run: yarn coverage
- name: Upload code coverage for ref branch
uses: actions/upload-artifact@v3
with:
name: ref-lcov.info
path: ./coverage/lcov.info
checks:
runs-on: ubuntu-latest
needs: base_branch_cov
steps:
- uses: actions/checkout@v3
- name: Use Node.js v20.9.0
uses: actions/setup-node@v3
with:
node-version: v20.9.0
- name: Download code coverage report from base branch
uses: actions/download-artifact@v3
with:
name: ref-lcov.info
- name: Install dependencies
run: yarn
- name: Run test coverage
run: yarn coverage
# Compares two code coverage files and generates report as a comment
- name: Generate Code Coverage report
id: code-coverage
uses: barecheck/code-coverage-action@v1
with:
barecheck-github-app-token: ${{ secrets.BARECHECK_GITHUB_APP_TOKEN }}
lcov-file: "./coverage/lcov.info"
base-lcov-file: "./lcov.info"
minimum-ratio: 0 # Fails Github action once code coverage is decreasing
send-summary-comment: true
show-annotations: "warning" # Possible options warning|error
You have to set node version on your side, this is not coming for the action itself I believe
@vladsha-dev Added also 'force' using 20 version from my side. Let me know if you still have issues
Thanks, @vitaliimelnychuk! After rerunning the job one more time, no warnings. :) I think it's because you forced the use of version 20.
Hi @vitaliimelnychuk I just attempted to rerun the job that utilizes
barecheck/code-coverage-action@v1
after the Node.js upgrade you performed, and I am still encountering the Node.js 16 deprecation warning.Warning
Job