Skip to content

Commit

Permalink
Merge pull request dotnet#13 from dotnet/DisableUbuntu
Browse files Browse the repository at this point in the history
Disable unsupported ubuntu sample
  • Loading branch information
mavasani authored Jun 1, 2021
2 parents 8f82828 + 8d5dc39 commit d3a5cb6
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 50 deletions.
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit d3a5cb6

Please sign in to comment.