Skip to content

(maint) Update vscode-ci codecov #906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/vscode-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- "main"
workflow_dispatch:

env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -48,7 +51,7 @@ jobs:

- name: Install psake
shell: pwsh
run: Install-Module psake -Force
run: Install-Module -Name psake -RequiredVersion 4.9.0 -Force

- name: npm install
shell: pwsh
Expand All @@ -73,12 +76,16 @@ jobs:
npm run test:coverage

- name: Upload Coverage
if: runner.os == 'Linux'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
npm run coverage:upload

if: |
runner.os == 'Linux' &&
env.CODECOV_TOKEN != ''
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
verbose: true

- name: vsce package
if: runner.os == 'Linux'
env:
Expand Down