Skip to content

Commit

Permalink
dont need test reselt b!dges for prs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
SQLDBAWithABeard committed Feb 17, 2023
1 parent 0dc2492 commit d48db21
Showing 1 changed file with 1 addition and 95 deletions.
96 changes: 1 addition & 95 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,98 +172,4 @@ jobs:
if: always()
with:
nunit_files: ${{ env.buildFolderName }}/${{ env.testResultFolderName }}/CodeCoverageWinPS7/NUnit*.xml
check_name: WinPS71 Test Results

- name: Set Linux badge color
shell: bash
run: |
case ${{ fromJSON( steps.linux-test-results.outputs.json ).conclusion }} in
success)
echo "LINUXBADGE_COLOR=31c653" >> $GITHUB_ENV
;;
failure)
echo "LINUXBADGE_COLOR=800000" >> $GITHUB_ENV
;;
neutral)
echo "LINUXBADGE_COLOR=696969" >> $GITHUB_ENV
;;
esac
- name: Create Linux badge
uses: emibcn/[email protected]
with:
label: Tests
status: '${{ fromJSON( steps.linux-test-results.outputs.json ).formatted.stats.tests }} tests, ${{ fromJSON( steps.linux-test-results.outputs.json ).formatted.stats.runs }} runs: ${{ fromJSON( steps.linux-test-results.outputs.json ).conclusion }}'
color: ${{ env.LINUXBADGE_COLOR }}
path: linux-badge.svg
- name: Upload Linux badge to Gist
# Upload only for main branch
if: >
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/SQLDBAWithABeard/7a5d2837e29654202f22392187c75fec
file: linux-badge.svg
- name: Set WinPS51 badge color
shell: bash
run: |
case ${{ fromJSON( steps.winps51-test-results.outputs.json ).conclusion }} in
success)
echo "WINPS51BADGE_COLOR=31c653" >> $GITHUB_ENV
;;
failure)
echo "WINPS51BADGE_COLOR=800000" >> $GITHUB_ENV
;;
neutral)
echo "WINPS51BADGE_COLOR=696969" >> $GITHUB_ENV
;;
esac
- name: Create WINPS51 badge
uses: emibcn/[email protected]
with:
label: Tests
status: '${{ fromJSON( steps.winps51-test-results.outputs.json ).formatted.stats.tests }} tests, ${{ fromJSON( steps.winps51-test-results.outputs.json ).formatted.stats.runs }} runs: ${{ fromJSON( steps.winps51-test-results.outputs.json ).conclusion }}'
color: ${{ env.WINPS51BADGE_COLOR }}
path: winps51-badge.svg
- name: Upload WINPS51 badge to Gist
# Upload only for main branch
if: >
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/SQLDBAWithABeard/7a5d2837e29654202f22392187c75fec
file: winps51-badge.svg
- name: Set WinPS7 badge color
shell: bash
run: |
case ${{ fromJSON( steps.winps71-test-results.outputs.json ).conclusion }} in
success)
echo "WINPS7BADGE_COLOR=31c653" >> $GITHUB_ENV
;;
failure)
echo "WINPS7BADGE_COLOR=800000" >> $GITHUB_ENV
;;
neutral)
echo "WINPS7BADGE_COLOR=696969" >> $GITHUB_ENV
;;
esac
- name: Create WinPS7 badge
uses: emibcn/[email protected]
with:
label: Tests
status: '${{ fromJSON( steps.winps71-test-results.outputs.json ).formatted.stats.tests }} tests, ${{ fromJSON( steps.winps71-test-results.outputs.json ).formatted.stats.runs }} runs: ${{ fromJSON( steps.winps71-test-results.outputs.json ).conclusion }}'
color: ${{ env.WINPS7BADGE_COLOR }}
path: winps7-badge.svg
- name: Upload WINPS7 badge to Gist
# Upload only for main branch
if: >
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/SQLDBAWithABeard/7a5d2837e29654202f22392187c75fec
file: winps7-badge.svg
check_name: WinPS71 Test Results

0 comments on commit d48db21

Please sign in to comment.