Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- uses: actions/setup-dotnet@v6
with:
dotnet-version: |
8.0.x
10.0.x

- name: Restore
run: dotnet restore AspNetCoreHero.ToastNotification.slnx

- name: Build
run: dotnet build AspNetCoreHero.ToastNotification.slnx --configuration Release --no-restore

- name: Install Playwright Chromium
run: pwsh tests/AspNetCoreHero.ToastNotification.E2ETests/bin/Release/net10.0/playwright.ps1 install --with-deps chromium

- name: Test (unit, integration, public API, browser)
run: dotnet test --solution AspNetCoreHero.ToastNotification.slnx --configuration Release --no-build

- name: Pack
run: dotnet pack src/AspNetCoreHero.ToastNotification/AspNetCoreHero.ToastNotification.csproj --configuration Release --no-build --output artifacts

- uses: actions/upload-artifact@v7
with:
name: nuget-package
path: artifacts/*
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release

# Publishes to nuget.org when a GitHub release is published (tag like v2.0.0).
# Uses NuGet Trusted Publishing (OIDC) - no long-lived API key in the repo.
#
# One-time setup:
# 1. nuget.org -> your profile -> Trusted Publishing -> add a policy:
# owner "codewithmukesh", repository "ToastNotification", workflow "release.yml".
# 2. Repo -> Settings -> Secrets -> Actions -> add NUGET_USER = your nuget.org profile name.

on:
release:
types: [published]

permissions:
contents: read
id-token: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- uses: actions/setup-dotnet@v6
with:
dotnet-version: |
8.0.x
10.0.x

- name: Test
run: |
dotnet build AspNetCoreHero.ToastNotification.slnx --configuration Release
pwsh tests/AspNetCoreHero.ToastNotification.E2ETests/bin/Release/net10.0/playwright.ps1 install --with-deps chromium
dotnet test --solution AspNetCoreHero.ToastNotification.slnx --configuration Release --no-build

- name: Pack
run: dotnet pack src/AspNetCoreHero.ToastNotification/AspNetCoreHero.ToastNotification.csproj --configuration Release --no-build --output artifacts

- name: NuGet login (OIDC)
id: login
uses: NuGet/login@v1
with:
user: ${{ secrets.NUGET_USER }}

- name: Push
run: dotnet nuget push "artifacts/*.nupkg" --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,9 @@ ASALocalRun/
.localhistory/

# BeatPulse healthcheck temp database
healthchecksdb
healthchecksdb
# Local Claude Code settings
.claude/settings.local.json

# Public API snapshot output (see tests/.../PublicApi)
*.received.txt
43 changes: 0 additions & 43 deletions AspNetCoreHero.ToastNotification.sln

This file was deleted.

13 changes: 13 additions & 0 deletions AspNetCoreHero.ToastNotification.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Solution>
<Folder Name="/samples/">
<Project Path="samples/ToastNotification.Docs/ToastNotification.Docs.csproj" />
</Folder>
<Folder Name="/src/">
<Project Path="src/AspNetCoreHero.ToastNotification/AspNetCoreHero.ToastNotification.csproj" />
</Folder>
<Folder Name="/tests/">
<Project Path="tests/AspNetCoreHero.ToastNotification.E2ETests/AspNetCoreHero.ToastNotification.E2ETests.csproj" />
<Project Path="tests/AspNetCoreHero.ToastNotification.TestApp/AspNetCoreHero.ToastNotification.TestApp.csproj" />
<Project Path="tests/AspNetCoreHero.ToastNotification.Tests/AspNetCoreHero.ToastNotification.Tests.csproj" />
</Folder>
</Solution>
17 changes: 0 additions & 17 deletions AspNetCoreHero.ToastNotification/Abstractions/ITempDataService.cs

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions AspNetCoreHero.ToastNotification/Abstractions/Notification.cs

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions AspNetCoreHero.ToastNotification/Constants.cs

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions AspNetCoreHero.ToastNotification/Extensions/EnumExtensions.cs

This file was deleted.

This file was deleted.

Loading
Loading