Skip to content

Commit

Permalink
update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ariasemis committed Jun 20, 2023
1 parent 5df0514 commit f847128
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,15 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 🧰 Setup .NET Core 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.x'
- name: 🧰 Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: 🧰 Setup .NET 5
uses: actions/setup-dotnet@v1
- name: 🧰 Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.x'
global-json-file: .\global.json
- name: 💾 Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.OS }}-nuget-${{ hashFiles('**/paket.lock') }}
Expand All @@ -47,15 +39,16 @@ jobs:
- name: 🔨 Build
run: .\build.ps1 --target all
- name: 📦 Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: nupkg
path: ./src/Monies/bin/Release/*.nupkg
- name: 📊 Publish coverage report
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./src/Monies.Tests/TestResults/coverage.netcoreapp3.1.info
format: lcov
file: ./src/Monies.Tests/TestResults/coverage.net6.0.info

deploy:
needs: build
Expand All @@ -70,13 +63,13 @@ jobs:
NUGET_KEY: ${{ secrets.NUGET_KEY }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: 🧰 Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.x'
global-json-file: .\global.json
- name: 📦 Download Artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: nupkg
- name: 🚀 Push to GitHub Feed
Expand Down

0 comments on commit f847128

Please sign in to comment.