Skip to content

Fixed SA's EntityConfiguration issue #95

Fixed SA's EntityConfiguration issue

Fixed SA's EntityConfiguration issue #95

Workflow file for this run

name: spid_cie_oidc
on:
pull_request:
branches: [ main ]
types: [ opened, synchronize, closed ]
push:
paths-ignore:
- README.md
- CHANGELOG.md # Should never be edited anyway
- .gitignore
- .github/**
tags-ignore:
- '**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 8.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: src
- name: Build
run: dotnet build --no-restore
working-directory: src
- name: Test
run: dotnet test --no-build --verbosity normal -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=opencover
working-directory: src
- name: Copy the opencover.xml file
if: github.event_name != 'pull_request'
run: |
find ./ -type f -name "coverage.opencover.xml" | while read fname; do
dirname=`dirname "$fname"`
cp "${dirname}/coverage.opencover.xml" "./coverage.opencover.xml"
done
- name: Create Test Coverage Badge Data
if: github.event_name != 'pull_request'
uses: simon-k/[email protected]
id: create_coverage_badge
with:
label: Unit Test Coverage
color: brightgreen
path: ./coverage.opencover.xml
- name: Create the Coverage Badge Data File
if: github.event_name != 'pull_request'
uses: 1arp/[email protected]
with:
path: ./.github
file: coverage_badge.json
content: ${{steps.create_coverage_badge.outputs.badge}}
- name: Commit coverage_badge.json
if: github.event_name != 'pull_request'
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add ./.github/coverage_badge.json
set +e # Grep succeeds with nonzero exit codes to show results.
git status | grep modified
if [ $? -eq 0 ]
then
set -e
git commit -am "Automated Code Coverage badge data push"
git push
else
set -e
echo "No changes since last run"
fi