Skip to content

Bump bunit from 1.28.9 to 1.34.0 #76

Bump bunit from 1.28.9 to 1.34.0

Bump bunit from 1.28.9 to 1.34.0 #76

Workflow file for this run

name: Blazor Toolkit Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types:
- published
env:
project: src/AstroPanda.Blazor.Toolkit/AstroPanda.Blazor.Toolkit.csproj
test_project: test/AstroPanda.Blazor.Toolkit.Test/AstroPanda.Blazor.Toolkit.Test.csproj
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Add GitHub Packages Source
run: |-
dotnet nuget add source https://nuget.pkg.github.com/astro-panda/index.json --name github --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text
- name: 🏥 Restore dependencies
run: dotnet restore ${{ env.project }}
- name: 🛠 Build
run: dotnet build ${{ env.project }} --no-restore -c Release
- name: 🧪 Test
run: dotnet test ${{ env.test_project }} --no-build --verbosity normal
- name: 📦 Package
if: github.event_name == 'release'
run: dotnet pack ${{ env.project }} --no-build -p:Version=${{ github.ref_name }} --output "${{ runner.temp }}"
- name: Publish to GitHub Packages
if: github.event_name == 'release'
run: |-
dotnet nuget push ${{ runner.temp }}/*.nupkg -s github
- name: Publish to NuGet
if: github.event_name == 'release' && always()
run: |-
dotnet nuget push ${{ runner.temp }}/*.nupkg -k ${{ secrets.NUGET_PUBLIC_API_KEY }} -s https://api.nuget.org/v3/index.json