Skip to content

Modify Get-GitHubRepoInfoSnapshot and add tests for `Get-GitHubRepo… #203

Modify Get-GitHubRepoInfoSnapshot and add tests for `Get-GitHubRepo…

Modify Get-GitHubRepoInfoSnapshot and add tests for `Get-GitHubRepo… #203

name: Components Tests on Windows
on:
push:
branches:
- main
- dev
jobs:
component-tests-on-windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Test components
shell: pwsh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_USER_NAME: ${{ secrets.GH_USER_NAME }}
GH_REPO_NAME: ${{ secrets.GH_REPO_NAME }}
run: |
. ./Scripts/test_components.ps1 -CodeCoverage
. ./Scripts/test_APIs.ps1 -CodeCoverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: ./coverage-private.xml,./coverage-public.xml # optional
verbose: true # optional (default = false)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}