forked from dotnet/code-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dotnet#13 from dotnet/DisableUbuntu
Disable unsupported ubuntu sample
- Loading branch information
Showing
2 changed files
with
51 additions
and
50 deletions.
There are no files selected for viewing
98 changes: 50 additions & 48 deletions
98
...kflows/sample-workflow-windows-latest.yml → ...mple-workflow-windows-latest.yml.disabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters