Skip to content

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #14

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #14

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-and-test-aspnetcore:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET Core 2.1 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '2.1.x'
- name: Setup .NET 6.0 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Setup .NET 7.0 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Restore
run: dotnet restore src/Lib.AspNetCore.ServerTiming
- name: Build
run: dotnet build src/Lib.AspNetCore.ServerTiming --configuration Release --no-restore
- name: Test
run: dotnet test test/Test.AspNetCore.ServerTiming --configuration Release
build-and-test-azurefunctions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET 6.0 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Setup .NET 7.0 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Restore
run: dotnet restore src/Lib.Azure.Functions.Worker.ServerTiming
- name: Build
run: dotnet build src/Lib.Azure.Functions.Worker.ServerTiming --configuration Release --no-restore
- name: Test
run: dotnet test test/Test.Azure.Functions.Worker.ServerTiming --configuration Release
code-scanning:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: CodeQL Initialize
uses: github/codeql-action/init@v2
with:
languages: 'csharp'
- name: CodeQL Autobuild
uses: github/codeql-action/autobuild@v2
- name: CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:csharp'