Merge pull request #13 from dotnet/DisableUbuntu

Disable unsupported ubuntu sample
This commit is contained in:
Manish Vasani 2021-06-01 04:22:35 -07:00 коммит произвёл GitHub
Родитель 8f82828818 8d5dc39db6
Коммит d3a5cb6ef8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 51 добавлений и 50 удалений

Просмотреть файл

@ -1,48 +1,50 @@
# sample-workflow-windows-latest
# docs are in the repo
name: .NET Code Analysis windows-latest
on:
push:
branches:
- main
jobs:
sample:
name: .NET Code Analysis runner
# .NET Code Analysis runs on windows-latest.
# ubuntu-latest and macos-latest supporting coming soon
runs-on: windows-latest
steps:
# Checkout your code repository to scan
- uses: actions/checkout@v2
# Ensure compatible versions of dotnet are installed.
# The [Microsoft Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
# Remote agents already have a compatible version of dotnet installed and this step may be skipped.
# For local agents, ensure dotnet version 3.1.201 or later is installed by including this action:
# - uses: actions/setup-dotnet@v1
# with:
# dotnet-version: '3.1.x'
# Run NuGet restore for the solution at repo root
- name: Run NuGet restore
run: dotnet restore
# Run code analysis for the solution at repo root
- name: Run .NET Code Analysis
uses: dotnet/code-analysis@main
id: code-analysis
with:
build-breaking: false
# Upload the analysis results file
- name: Upload analysis results
uses: actions/upload-artifact@v2
with:
name: analysis_results.sarif
path: ${{ steps.code-analysis.outputs.sarifFile }}
# sample-workflow-windows-latest
# docs are in the repo
# DISABLED for now - we do not support Ubuntu yet
name: .NET Code Analysis windows-latest
on:
push:
branches:
- main
jobs:
sample:
name: .NET Code Analysis runner
# .NET Code Analysis runs on windows-latest.
# ubuntu-latest and macos-latest supporting coming soon
runs-on: windows-latest
steps:
# Checkout your code repository to scan
- uses: actions/checkout@v2
# Ensure compatible versions of dotnet are installed.
# The [Microsoft Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
# Remote agents already have a compatible version of dotnet installed and this step may be skipped.
# For local agents, ensure dotnet version 3.1.201 or later is installed by including this action:
# - uses: actions/setup-dotnet@v1
# with:
# dotnet-version: '3.1.x'
# Run NuGet restore for the solution at repo root
- name: Run NuGet restore
run: dotnet restore
# Run code analysis for the solution at repo root
- name: Run .NET Code Analysis
uses: dotnet/code-analysis@main
id: code-analysis
with:
build-breaking: false
# Upload the analysis results file
- name: Upload analysis results
uses: actions/upload-artifact@v2
with:
name: analysis_results.sarif
path: ${{ steps.code-analysis.outputs.sarifFile }}

Просмотреть файл

@ -1,7 +1,6 @@
# dotnet/code-analysis
![Code Analysis windows-latest](https://github.com/dotnet/code-analysis/workflows/.NET%20Code%20Analysis%20windows-latest/badge.svg)
![Code Analysis ubuntu-latest](https://github.com/dotnet/code-analysis/workflows/.NET%20Code%20Analysis%20ubuntu-latest/badge.svg)
![Code Analysis windows-latest](https://github.com/dotnet/code-analysis/workflows/.NET%20Code%20Analysis%20windows-latest/badge.svg)
# Overview