Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove codecov task and updated sdk version. #136

Merged
merged 7 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 3 additions & 18 deletions .azuredevops/Pipelines/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ stages:
displayName: Update git submodules

- task: UseDotNet@2
displayName: "Use dotnet sdk 8.0.100"
displayName: "Use dotnet sdk 8.0.401"
inputs:
version: 8.0.100
version: 8.0.401
includePreviewVersions: false

- script: dotnet --info
Expand Down Expand Up @@ -144,15 +144,6 @@ stages:
- task: SonarCloudPublish@2
displayName: Publish Quality Gate Result

# https://docs.codecov.com/docs/codecov-uploader
# todo fix path
# ./codecov.exe -f "../**/coverag*.cobertura.xml"
# - pwsh: |
# Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
# ./codecov.exe -f "$(Agent.TempDirectory)/**/coverage.cobertura.xml"
# displayName: Export coverage to CodeCov
# name: CodeCov

- pwsh: |
dotnet tool install --tool-path . dotnet-reportgenerator-globaltool
./reportgenerator "-reports:$(Agent.TempDirectory)/**/coverage.cobertura.xml" "-targetdir:$(Agent.TempDirectory)" "-reporttypes:Cobertura"
Expand All @@ -163,13 +154,7 @@ stages:
displayName: Publish code coverage to devops
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(Agent.TempDirectory)/Cobertura.xml'

- pwsh: |
Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
./codecov.exe -f "$(Agent.TempDirectory)\Cobertura.xml"
displayName: Export coverage to CodeCov
name: CodeCov
summaryFileLocation: '$(Agent.TempDirectory)/Cobertura.xml'

- task: DotNetCoreCLI@2
displayName: Dotnet Publish RepoM
Expand Down
13 changes: 3 additions & 10 deletions .azuredevops/Pipelines/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,10 @@ stages:
- script: git submodule update --init --recursive
displayName: Update git submodules

# required for mdsnippets?!
- task: UseDotNet@2
displayName: "Use dotnet sdk 6.0.x"
displayName: "Use dotnet sdk 8.0.401"
inputs:
version: 6.0.x
includePreviewVersions: false

- task: UseDotNet@2
displayName: "Use dotnet sdk 8.0.100"
inputs:
version: 8.0.100
version: 8.0.401
includePreviewVersions: false

- script: dotnet --info
Expand Down Expand Up @@ -73,7 +66,7 @@ stages:
checkLatest: true

- pwsh: |
dotnet tool install --global --version 25.1.0 MarkdownSnippets.Tool
dotnet tool install --global --version 27.0.2 MarkdownSnippets.Tool
mdsnippets

$changedLines = git status --porcelain=v1
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/on-push-do-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Run MarkdownSnippets
run: |
dotnet tool install --global --version 25.1.0 MarkdownSnippets.Tool
dotnet tool install --global --version 27.0.2 MarkdownSnippets.Tool
mdsnippets ${GITHUB_WORKSPACE}
shell: bash

- name: Push changes
run: |
git config --local user.email "action@github.com"
Expand Down
16 changes: 8 additions & 8 deletions docs_new/repository_action_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ For this example, the current repository branch name is `feature/abcdefghi` and
Text uses the following scriban lexer and parser options:

<!-- snippet: DefaultLexerAndParserOptions_DefaultParserOptions -->
<a id='snippet-defaultlexerandparseroptions_defaultparseroptions'></a>
<a id='snippet-DefaultLexerAndParserOptions_DefaultParserOptions'></a>
```cs
public static readonly ParserOptions DefaultParserOptions = new()
{
Expand All @@ -41,11 +41,11 @@ public static readonly ParserOptions DefaultParserOptions = new()
ParseFloatAsDecimal = default,
};
```
<sup><a href='/src/RepoM.ActionMenu.Core/Model/Lexers.cs#L24-L31' title='Snippet source file'>snippet source</a> | <a href='#snippet-defaultlexerandparseroptions_defaultparseroptions' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/RepoM.ActionMenu.Core/Model/Lexers.cs#L24-L31' title='Snippet source file'>snippet source</a> | <a href='#snippet-DefaultLexerAndParserOptions_DefaultParserOptions' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

<!-- snippet: DefaultLexerAndParserOptions_MixedLexer -->
<a id='snippet-defaultlexerandparseroptions_mixedlexer'></a>
<a id='snippet-DefaultLexerAndParserOptions_MixedLexer'></a>
```cs
public static readonly LexerOptions MixedLexer = new()
{
Expand All @@ -54,7 +54,7 @@ public static readonly LexerOptions MixedLexer = new()
Mode = ScriptMode.Default,
};
```
<sup><a href='/src/RepoM.ActionMenu.Core/Model/Lexers.cs#L15-L22' title='Snippet source file'>snippet source</a> | <a href='#snippet-defaultlexerandparseroptions_mixedlexer' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/RepoM.ActionMenu.Core/Model/Lexers.cs#L15-L22' title='Snippet source file'>snippet source</a> | <a href='#snippet-DefaultLexerAndParserOptions_MixedLexer' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

## Predicate
Expand All @@ -78,7 +78,7 @@ A predicate is a scriban expression resulting in a boolean. Beause it is an expr
Predicate uses the following scriban lexer and parser options:

<!-- snippet: DefaultLexerAndParserOptions_DefaultParserOptions -->
<a id='snippet-defaultlexerandparseroptions_defaultparseroptions'></a>
<a id='snippet-DefaultLexerAndParserOptions_DefaultParserOptions'></a>
```cs
public static readonly ParserOptions DefaultParserOptions = new()
{
Expand All @@ -87,17 +87,17 @@ public static readonly ParserOptions DefaultParserOptions = new()
ParseFloatAsDecimal = default,
};
```
<sup><a href='/src/RepoM.ActionMenu.Core/Model/Lexers.cs#L24-L31' title='Snippet source file'>snippet source</a> | <a href='#snippet-defaultlexerandparseroptions_defaultparseroptions' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/RepoM.ActionMenu.Core/Model/Lexers.cs#L24-L31' title='Snippet source file'>snippet source</a> | <a href='#snippet-DefaultLexerAndParserOptions_DefaultParserOptions' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

<!-- snippet: DefaultLexerAndParserOptions_ScriptOnlyLexer -->
<a id='snippet-defaultlexerandparseroptions_scriptonlylexer'></a>
<a id='snippet-DefaultLexerAndParserOptions_ScriptOnlyLexer'></a>
```cs
public static readonly LexerOptions ScriptOnlyLexer = new()
{
Lang = ScriptLang.Default,
Mode = ScriptMode.ScriptOnly,
};
```
<sup><a href='/src/RepoM.ActionMenu.Core/Model/Lexers.cs#L7-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-defaultlexerandparseroptions_scriptonlylexer' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/RepoM.ActionMenu.Core/Model/Lexers.cs#L7-L13' title='Snippet source file'>snippet source</a> | <a href='#snippet-DefaultLexerAndParserOptions_ScriptOnlyLexer' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"version": "8.0.401",
"rollForward": "latestFeature"
}
}
Loading