mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 11:11:23 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5b701186e | ||
|
|
0702ab7d0a | ||
|
|
5adadbfc46 | ||
|
|
739f83bf0c | ||
|
|
a9bd792af1 | ||
|
|
e6ffc92db6 |
19
.github/workflows/publish-pipeline.yml
vendored
19
.github/workflows/publish-pipeline.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
|||||||
ls -l
|
ls -l
|
||||||
dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/WOmed/index.json"
|
dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/WOmed/index.json"
|
||||||
|
|
||||||
- name: 'Upload artifacts to latest release'
|
- name: 'Upload package to latest release'
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
@@ -61,3 +61,20 @@ jobs:
|
|||||||
asset_name: Mewtocol.NET.${{ env.VERSION }}.nupkg
|
asset_name: Mewtocol.NET.${{ env.VERSION }}.nupkg
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
|
- name: Load cached test results
|
||||||
|
uses: actions/cache/restore@v3
|
||||||
|
with:
|
||||||
|
key: coverage-data
|
||||||
|
path: |
|
||||||
|
${{ github.workspace }}/MewtocolTests/TestResults
|
||||||
|
|
||||||
|
- name: 'Upload coverage xml to latest release'
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
with:
|
||||||
|
upload_url: "${{ github.event.release.upload_url }}"
|
||||||
|
asset_path: '${{ github.workspace }}/MewtocolTests/TestResults/coverage.opencover.xml'
|
||||||
|
asset_name: coverage.opencover.xml
|
||||||
|
asset_content_type: application/xml
|
||||||
|
|
||||||
9
.github/workflows/test-pipeline.yml
vendored
9
.github/workflows/test-pipeline.yml
vendored
@@ -41,10 +41,17 @@ jobs:
|
|||||||
- name: 'Run tests'
|
- name: 'Run tests'
|
||||||
run: |
|
run: |
|
||||||
cd '${{ github.workspace }}/MewtocolTests'
|
cd '${{ github.workspace }}/MewtocolTests'
|
||||||
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
|
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./TestResults/
|
||||||
|
|
||||||
#Upload to codecov
|
#Upload to codecov
|
||||||
- name: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
env:
|
env:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
|
- name: Cache test results
|
||||||
|
uses: actions/cache/save@v3
|
||||||
|
with:
|
||||||
|
key: coverage-data
|
||||||
|
path: |
|
||||||
|
${{ github.workspace }}/MewtocolTests/TestResults
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
[](https://github.com/WOmed/MewtocolNet/actions/workflows/build-pipeline.yml)
|
[](https://github.com/WOmed/MewtocolNet/actions/workflows/publish-pipeline.yml)
|
||||||
|
[](https://github.com/WOmed/MewtocolNet/actions/workflows/test-pipeline.yml)
|
||||||
[](https://www.nuget.org/packages/Mewtocol.NET)
|
[](https://www.nuget.org/packages/Mewtocol.NET)
|
||||||
[](https://codecov.io/gh/WOmed/MewtocolNet)
|
[](https://codecov.io/gh/WOmed/MewtocolNet)
|
||||||

|

|
||||||
|
|||||||
Reference in New Issue
Block a user