Skip to content

Commit

Permalink
Merge pull request #906 from puppetlabs/update-codecov
Browse files Browse the repository at this point in the history
(maint) Update vscode-ci codecov
  • Loading branch information
danadoherty639 authored Feb 20, 2025
2 parents b3425a2 + 133f9ac commit 649a622
Showing 1 changed file with 14 additions and 7 deletions.
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

0 comments on commit 649a622

Please sign in to comment.