mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 17:23:19 -05:00
Add coveralls support for extension tests (#9603)
* Test uploading multiple reports in parallel * Fix filename * Add rest of extensions * Try removing parallel task running * Add parallel back in
This commit is contained in:
66
.github/workflows/ci.yml
vendored
66
.github/workflows/ci.yml
vendored
@@ -49,12 +49,74 @@ jobs:
|
||||
# name: Download Built-in Extensions
|
||||
- run: DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests" --coverage --runGlob "**/sql/**/*.test.js"
|
||||
name: Run Unit Tests (Electron)
|
||||
- run: DISPLAY=:10 ./scripts/test-extensions-unit.sh
|
||||
name: Run Extension Unit Tests (Electron)
|
||||
# {{SQL CARBON EDIT}} Add coveralls
|
||||
- name: Coveralls GitHub Action
|
||||
- name: Upload Core Coverage
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: '.build/coverage-single/lcov.info'
|
||||
- name: Upload admin-tool-ext-win Extension Coverage
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: './extensions/admin-tool-ext-win/coverage/lcov.info'
|
||||
- name: Upload agent Extension Coverage
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: './extensions/agent/coverage/lcov.info'
|
||||
- name: Upload azurecore Extension Coverage
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: './extensions/azurecore/coverage/lcov.info'
|
||||
- name: Upload cms Extension Coverage
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: './extensions/cms/coverage/lcov.info'
|
||||
- name: Upload dacpac Extension Coverage
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: './extensions/dacpac/coverage/lcov.info'
|
||||
- name: Upload schema-compare Extension Coverage
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: './extensions/schema-compare/coverage/lcov.info'
|
||||
- name: Upload notebook Extension Coverage
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: './extensions/notebook/coverage/lcov.info'
|
||||
- name: Upload resource-deployment Extension Coverage
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: './extensions/resource-deployment/coverage/lcov.info'
|
||||
- name: Upload machine-learning-services Extension Coverage
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
parallel: true
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: './extensions/machine-learning-services/coverage/lcov.info'
|
||||
- name: Finish Parallel Coveralls Uploads
|
||||
uses: coverallsapp/github-action@v1.0.1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: '.build/coverage-single/lcov.info'
|
||||
parallel-finished: true
|
||||
|
||||
# Fails with cryptic error (e.g. https://github.com/microsoft/vscode/pull/90292/checks?check_run_id=433681926#step:13:9)
|
||||
# - run: DISPLAY=:10 yarn test-browser --browser chromium
|
||||
|
||||
Reference in New Issue
Block a user