Skip to content

Merge branch 'feature/improve-performance' #7

Merge branch 'feature/improve-performance'

Merge branch 'feature/improve-performance' #7

Workflow file for this run

---
name: CI
on:
push:
paths-ignore:
- docs/**
pull_request:
branches: [ master, main ]
paths-ignore:
- docs/**
jobs:
build:
runs-on: ubuntu-latest
permissions:
checks: write
packages: write
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0
- name: 🛠️ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
cache: true
cache-dependency-path: '**/packages.lock.json'
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: 💾 Restore dependencies
run: dotnet restore
- name: ⚙️ Build
run: dotnet build -c Release --no-restore
- name: 🚦 Test
run: dotnet test -c Release -l trx --results-directory ./artifacts/ --no-build
- name: 📋 Test reporter
uses: dorny/test-reporter@v1
if: always()
with:
name: unittests
path: ./artifacts/*.trx
reporter: dotnet-trx
- name: 📦 Pack
run: dotnet pack -c Release -o ./artifacts/ --no-build
- name: 🚀 Push to GitHub
run: |
dotnet nuget add source --username RemyDuijkeren --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
dotnet nuget push ./artifacts/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
- name: 🗑️ Delete old pre-release packages
uses: actions/delete-package-versions@v5
with:
package-name: NodaMoney
package-type: nuget
min-versions-to-keep: 10
delete-only-pre-release-versions: true