Skip to content
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