Skip to content

Removed support for .NET Framework-based ASP .NET Core applications #47

Removed support for .NET Framework-based ASP .NET Core applications

Removed support for .NET Framework-based ASP .NET Core applications #47

Workflow file for this run

name: Build repo
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
jobs:
check-code-formatting:
runs-on: ubuntu-latest
name: Check code formatting against editorconfig
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install dotnet-format tool
run: dotnet tool install -g dotnet-format
- name: Check Code Format
run: dotnet-format --check
build:
needs: [check-code-formatting]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: pack
run: dotnet pack src/OwaspHeaders.Core.csproj --configuration Release --no-build --no-restore
- uses: actions/upload-artifact@v3
if: ${{ success() }}
with:
name: OwaspHeaders.Core
path: ${{ github.workspace }}/**/*.nupkg
retention-days: 5