Skip to content

Validate JsonColumn and use fully-qualified types #720

Validate JsonColumn and use fully-qualified types

Validate JsonColumn and use fully-qualified types #720

Workflow file for this run

name: Build
env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_ENVIRONMENT: github
ASPNETCORE_ENVIRONMENT: github
BUILD_PATH: "${{github.workspace}}/artifacts"
permissions:
contents: read
on:
push:
branches:
- master
- develop
tags:
- "v*"
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.x
- name: Restore Dependencies
run: dotnet restore
- name: Build Solution
run: dotnet build --no-restore --configuration Release
- name: Run Test
run: dotnet test --no-build --configuration Release --coverlet --coverlet-output-format lcov
- name: Collect Coverage
if: success()
id: coverage
run: |
FILES=$(find ${{github.workspace}} -name 'coverage.*.info' -print | tr '\n' ' ')
echo "files=$FILES" >> $GITHUB_OUTPUT
- name: Report Coverage
if: success() && steps.coverage.outputs.files != ''
uses: coverallsapp/github-action@v2
continue-on-error: true
with:
files: ${{ steps.coverage.outputs.files }}
format: lcov
- name: Create Packages
if: success() && github.event_name != 'pull_request'
run: dotnet pack --configuration Release --no-build --output "${{env.BUILD_PATH}}"
- name: Upload Packages
if: success() && github.event_name != 'pull_request'
uses: actions/upload-artifact@v7
with:
name: packages
path: "${{env.BUILD_PATH}}"
- name: Install docfx
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
run: dotnet tool update -g docfx
- name: Create Documentation
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
run: docfx docs/docfx.json
- name: Upload Documentation
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
uses: actions/upload-pages-artifact@v5
with:
name: github-pages
path: "docs/_site/"
deploy:
runs-on: ubuntu-latest
needs: build
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
permissions:
contents: read
packages: write
steps:
- name: Download Artifact
uses: actions/download-artifact@v8
with:
name: packages
- name: Publish Packages GitHub
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for package in $(find -name "*.nupkg"); do
echo "${0##*/}": Pushing $package...
dotnet nuget push "$package" --source https://nuget.pkg.github.com/loresoft/index.json --api-key "$GITHUB_PACKAGE_TOKEN" --skip-duplicate
done
- name: Publish Packages feedz
env:
FEEDZ_API_KEY: ${{ secrets.FEEDDZ_KEY }}
run: |
for package in $(find -name "*.nupkg"); do
echo "${0##*/}": Pushing $package...
dotnet nuget push "$package" --source https://f.feedz.io/loresoft/open/nuget/index.json --api-key "$FEEDZ_API_KEY" --skip-duplicate
done
- name: Publish Packages Nuget
if: startsWith(github.ref, 'refs/tags/v')
env:
NUGET_API_KEY: ${{ secrets.NUGET_KEY }}
run: |
for package in $(find -name "*.nupkg"); do
echo "${0##*/}": Pushing $package...
dotnet nuget push "$package" --source https://api.nuget.org/v3/index.json --api-key "$NUGET_API_KEY" --skip-duplicate
done
pages:
runs-on: ubuntu-latest
needs: build
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
permissions:
pages: write
id-token: write
steps:
- name: Deploy Documentation
id: deployment
uses: actions/deploy-pages@v5
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}