Skip to content

Commit 36f22e3

Browse files
authored
Upload build early and ignore coverage (#5025)
1 parent 9405077 commit 36f22e3

File tree

1 file changed

+0
-68
lines changed

1 file changed

+0
-68
lines changed

.github/workflows/build-test.yml

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -905,71 +905,3 @@ jobs:
905905

906906
- name: Upload to Blob Storage
907907
run: az storage blob upload --file ${{ needs.pick_environment.outputs.vsix_name }} --account-name pvsc --container-name ${{ env.BLOB_CONTAINER_NAME }} --name ${{ needs.pick_environment.outputs.vsix_name }}
908-
909-
coverage:
910-
name: Coverage reports upload
911-
runs-on: ubuntu-latest
912-
if: always()
913-
needs: [ts_tests, vscodeTests, smoke-tests, tests]
914-
steps:
915-
- name: Checkout
916-
uses: actions/checkout@v2
917-
918-
- name: Install Node
919-
uses: actions/[email protected]
920-
with:
921-
node-version: ${{env.NODE_VERSION}}
922-
923-
- name: Install dependencies (npm ci)
924-
run: npm ci --prefer-offline
925-
926-
- name: Cache compiled TS files
927-
id: out-cache
928-
uses: actions/[email protected]
929-
with:
930-
path: ./out
931-
key: ${{runner.os}}-${{env.CACHE_OUT_DIRECTORY}}-${{hashFiles('src/**')}}
932-
933-
- name: Compile if not cached
934-
run: npx gulp prePublishNonBundle
935-
env:
936-
CI_JUPYTER_FAST_COMPILATION: 'true'
937-
938-
# It isn't possible to specify a regex for artifact names, so we have to download each artifact manually.
939-
# The name pattern is ${{runner.os}}-${{env.COVERAGE_REPORTS}}, and possible values for runner.os are `Linux`, `Windows`, or `macOS`.
940-
# See https://help.github.com/en/actions/reference/contexts-and-expression-syntax-for-github-actions#runner-context
941-
- name: Download Ubuntu test coverage artifacts
942-
uses: actions/download-artifact@v2
943-
with:
944-
name: ${{runner.os}}-${{ env.COVERAGE_REPORTS }}
945-
path: ${{runner.os}}-${{ env.COVERAGE_REPORTS }}
946-
947-
- name: Extract Ubuntu coverage artifacts to ./nyc_output
948-
run: |
949-
pwd
950-
mkdir .nyc_output
951-
mv ${{runner.os}}-${{ env.COVERAGE_REPORTS }}/* .nyc_output
952-
rm -r ${{runner.os}}-${{ env.COVERAGE_REPORTS }}
953-
954-
- name: Merge coverage reports
955-
run: |
956-
pwd
957-
npx nyc merge ./.nyc_output
958-
rm -r .nyc_output
959-
mkdir .nyc_output
960-
mv coverage.json ./.nyc_output
961-
continue-on-error: true
962-
963-
- name: Generate coverage reports
964-
run: npm run test:cover:report
965-
continue-on-error: true
966-
967-
- name: Upload coverage to codecov
968-
uses: codecov/codecov-action@v1
969-
with:
970-
token: ${{ secrets.CODECOV_TOKEN }}
971-
file: ./coverage/cobertura-coverage.xml
972-
path_to_write_report: ./coverage/codecov_report.txt
973-
# Alternative method for uploading
974-
# - name: Upload coverage to codecov
975-
# run: bash <(curl -s https://codecov.io/bash) -f ./coverage/cobertura-coverage.xml -v

0 commit comments

Comments
 (0)