Skip to content
Merged
Show file tree
Hide file tree
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
29 changes: 0 additions & 29 deletions .github/workflows/pester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,32 +45,3 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action/composite@v2
id: test-results
if: always()
- name: Set badge color
if: ${{ matrix.os == 'windows-latest' }}
shell: pwsh
run: |
switch('${{ fromJSON( steps.test-results.outputs.json ).conclusion }}')
{
success {'BADGE_COLOR=31C653' |Add-Content $env:GITHUB_ENV}
failure {'BADGE_COLOR=800000' |Add-Content $env:GITHUB_ENV}
neutral {'BADGE_COLOR=696969' |Add-Content $env:GITHUB_ENV}
}
- name: Create badge
if: ${{ matrix.os == 'windows-latest' }}
uses: emibcn/badge-action@d6f51ff11b5c3382b3b88689ae2d6db22d9737d1
with:
label: Tests
status: '${{ fromJSON( steps.test-results.outputs.json ).formatted.stats.tests }} tests, ${{ fromJSON( steps.test-results.outputs.json ).formatted.stats.runs }} runs: ${{ fromJSON( steps.test-results.outputs.json ).conclusion }}'
color: ${{ env.BADGE_COLOR }}
path: badge.svg
- name: Upload badge to Gist
# Upload only for original fork and main branch
if: >
matrix.os == 'windows-latest' && github.repository == 'brianary/scripts' &&
((github.event_name == 'workflow_run' && github.event.workflow_run.head_branch == 'main') ||
(github.event_name != 'workflow_run' && github.ref == 'refs/heads/main'))
uses: andymckay/append-gist-action@1fbfbbce708a39bd45846f0955ed5521f2099c6d
with:
token: ${{ secrets.GIST_TOKEN }}
gistURL: https://gist.githubusercontent.com/brianary/4642e5c804aa1b40738def5a7c03607a
file: badge.svg
1 change: 0 additions & 1 deletion Export-Readme.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ function Format-Readme
Useful General-Purpose Scripts
==============================

[![Pester tests status](https://github.com/brianary/scripts/actions/workflows/pester.yml/badge.svg)][pester.yml]
[![Pester tests results](https://gist.githubusercontent.com/brianary/4642e5c804aa1b40738def5a7c03607a/raw/badge.svg)][pester.yml]
[![Pester tests coverage]($(Get-PesterCoverageBadge -UseLines))](https://github.com/brianary/scripts/tree/main/test)
[![GitHub license badge](https://badgen.net/github/license/brianary/Scripts?icon=github)](https://mit-license.org/ "MIT License")
Expand Down
4 changes: 1 addition & 3 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading