-
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.
Включена нулабельность типов, добавлены тесты, поправлен конвейер пуб…
…ликации, в.1.0-а1
- Loading branch information
Showing
15 changed files
with
699 additions
and
88 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -24,14 +24,20 @@ jobs: | |
runs-on: ${{matrix.os}} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
os: [ubuntu-latest] | ||
steps: | ||
- name: 'Checkout' | ||
uses: actions/checkout@v2 | ||
- name: 'Setup .NET Core' | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v2.0.0 | ||
with: | ||
dotnet-version: '6.0.x' | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-nuget | ||
- name: 'Install dependencies' | ||
run: dotnet restore | ||
- name: 'Build' | ||
|
@@ -40,40 +46,52 @@ jobs: | |
run: dotnet test --no-restore --verbosity normal | ||
- name: 'Pack' | ||
run: dotnet pack --no-build --configuration Release src/Delobytes.NetCore.EntityReportGeneration.csproj --output distr | ||
- name: 'Publish Artefacts' | ||
uses: actions/upload-artifact@v2 | ||
- name: 'Upload package' | ||
uses: actions/upload-artifact@v3.0.0 | ||
with: | ||
name: ${{matrix.os}} | ||
path: distr | ||
path: "distr" | ||
if-no-files-found: error | ||
retention-days: 1 | ||
|
||
check-tag: | ||
name: 'Check tag' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tagName: ${{ steps.tagName.outputs.tag }} | ||
steps: | ||
- name: 'Get tag' | ||
id: tag | ||
uses: dawidd6/action-get-tag@v1 | ||
with: | ||
strip_v: true | ||
- name: 'Fail if no tag' | ||
if: ${{ steps.tag.outputs.tag == '' }} | ||
run: exit 1 | ||
|
||
push-github-packages: | ||
push-github-package: | ||
name: 'Push GitHub Package' | ||
needs: build | ||
runs-on: windows-latest | ||
needs: [build, check-tag] | ||
if: success() | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Download Artefact' | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: 'windows-latest' | ||
- name: 'Dotnet NuGet Add Source' | ||
run: dotnet nuget add source https://nuget.pkg.github.com/Delobytes.NetCore.EntityReportGeneration/index.json --name GitHub --username a-postx --password ${{secrets.GITHUB_TOKEN}} | ||
shell: pwsh | ||
- name: 'Dotnet NuGet Push' | ||
run: dotnet nuget push .\*.nupkg --api-key ${{ github.token }} --source GitHub --skip-duplicate | ||
shell: pwsh | ||
- name: 'Download Artefact' | ||
uses: actions/[email protected] | ||
with: | ||
name: 'ubuntu-latest' | ||
- name: 'Dotnet NuGet Push' | ||
run: | | ||
dotnet nuget push *.nupkg --source https://nuget.pkg.github.com/Delobytes.NetCore.EntityReportGeneration/index.json --skip-duplicate --api-key ${{ github.token }} | ||
push-nuget: | ||
push-nuget-package: | ||
name: 'Push NuGet Package' | ||
needs: build | ||
runs-on: windows-latest | ||
needs: [build, check-tag] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Download Artefact' | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: 'windows-latest' | ||
- name: 'Dotnet NuGet Push' | ||
run: | | ||
Get-ChildItem .\windows-latest -Filter *.nupkg | | ||
Where-Object { !$_.Name.Contains('preview') } | | ||
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} } | ||
shell: pwsh | ||
- name: 'Download Artefact' | ||
uses: actions/[email protected] | ||
with: | ||
name: 'ubuntu-latest' | ||
- name: 'Dotnet NuGet Push' | ||
run: | | ||
dotnet nuget push *.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: 'Build and test' | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
branches: [ main ] | ||
paths-ignore: | ||
- '**.md' | ||
|
||
env: | ||
# Disable the .NET logo in the console output. | ||
DOTNET_NOLOGO: true | ||
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build. | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
# Disable sending .NET CLI telemetry to Microsoft. | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
# Set the build number in MinVer. | ||
MINVERBUILDMETADATA: build.${{github.run_number}} | ||
|
||
jobs: | ||
build: | ||
name: Build-${{matrix.os}} | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
steps: | ||
- name: 'Checkout' | ||
uses: actions/checkout@v2 | ||
- name: 'Setup .NET Core' | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '6.0.x' | ||
- name: 'Install dependencies' | ||
run: dotnet restore | ||
- name: 'Build' | ||
run: dotnet build --configuration Release --no-restore | ||
- name: 'Test' | ||
run: dotnet test --no-restore --verbosity normal --logger trx --results-directory "TestResults-${{ matrix.os }}" | ||
- name: 'Upload test results' | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: dotnet-results-${{ matrix.os }} | ||
path: TestResults-${{ matrix.os }} | ||
if-no-files-found: error | ||
retention-days: 3 |
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Delobytes.NetCore.EntityReportGeneration | ||
|
||
[RU](README.md), [EN](README.en.md) | ||
|
||
Report generator that allows to export objects into table representation. | ||
Supported formats: CSV, XLSX. | ||
|
||
## License | ||
[MIT](https://github.com/a-postx/Delobytes.NetCore.EntityReportGeneration/blob/main/LICENSE) |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Delobytes.NetCore.EntityReportGeneration | ||
|
||
[RU](README.md), [EN](README.en.md) | ||
|
||
Генератор отчётов, позволяющий экспортировать сущности в табличное представление. | ||
Поддерживаемые форматы: CSV, XLSX. | ||
|
||
## Лицензия | ||
[МИТ](https://github.com/a-postx/Delobytes.NetCore.EntityReportGeneration/blob/main/LICENSE) |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.