Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update workflows
Browse files Browse the repository at this point in the history
andrii-bodnar committed Jan 16, 2024

Verified

This commit was signed with the committer’s verified signature.
TotalWipeOut Kevin Hamilton
1 parent aa3e4e7 commit 3bd1a5a
Showing 3 changed files with 31 additions and 16 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
@@ -22,19 +22,27 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup .NET SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Restore dependencies
run: dotnet restore


- name: Clean the Readme
run: |
sed -i.bak '/<p align="center">/,/<\/p>/d' README.md
sed -i.bak '/\<div/d' README.md
sed -i.bak '/\<\\/div/d' README.md
rm README.md.bak
cat README.md
- name: Build
run: dotnet build -c Release --no-restore

- name: Test
run: dotnet test --no-restore --verbosity normal

@@ -44,24 +52,24 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x

- name: Test
run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura

- name: Generate code coverage report
uses: danielpalme/[email protected]
with:
reports: '**/coverage.cobertura.xml'
targetdir: 'CodeCoverage'
reporttypes: 'Cobertura'

- name: Publish code coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: '**/coverage.cobertura.xml'
files: '**/coverage.cobertura.xml'
12 changes: 6 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v2
@@ -33,7 +33,7 @@ jobs:
run: cp docs/_site/README.html docs/_site/index.html

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/
@@ -44,15 +44,15 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: docs

- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4.3.3
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: _site
folder: _site
7 changes: 7 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -23,6 +23,13 @@ jobs:
with:
dotnet-version: 7.0.x

- name: Clean the Readme
run: |
sed -i /<p>/,/<\/p>/d README.md
sed -i /\<div/d README.md
sed -i /\<\\/div/d README.md
cat README.md
- name: Build the project
run: dotnet build -c Release ${{ env.PROJECT_CSPROJ_PATH }}

0 comments on commit 3bd1a5a

Please sign in to comment.