Add span-based parsing and UTF-8 support for Money #17
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
--- | |
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: | | |
6.0.x | |
8.0.x | |
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 -f net6.0 -c Release -l trx --results-directory ./artifacts/ --no-build | |
dotnet test -f net8.0 -c Release -l trx --results-directory ./artifacts/ --no-build | |
dotnet test -f net9.0 -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 |