Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
12 changes: 11 additions & 1 deletion .github/workflows/auto-pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- master
- main
- dev

jobs:
run_test:
Expand All @@ -20,6 +19,17 @@ jobs:
with:
dotnet-version: 9.0.x

- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{runner.os}}-nuget-bb-${{hashFiles('**​/*.csproj')}}
restore-keys: |
${{runner.os}}-nuget-bb-

- name: Restore dependencies
run: dotnet restore src/BootstrapBlazor

- name: Test
run: |
dotnet test test/UnitTest --collect:"XPlat Code Coverage"
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- master
- main
- dev

jobs:
build:
Expand All @@ -19,12 +18,22 @@ jobs:
with:
dotnet-version: 9.0.x

- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{runner.os}}-nuget-bb-${{hashFiles('**/*.csproj')}}
restore-keys: |
${{runner.os}}-nuget-bb-

- name: Restore dependencies
run: dotnet restore src/BootstrapBlazor

- name: Build
env:
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
Bundle: True
run: |
dotnet restore src/BootstrapBlazor --no-cache
dotnet build src/BootstrapBlazor

- name: Test
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ jobs:
with:
dotnet-version: 9.0.x

- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{runner.os}}-nuget-bb-${{hashFiles('**/*.csproj')}}
restore-keys: |
${{runner.os}}-nuget-bb-

- name: Restore dependencies
run: dotnet restore src/BootstrapBlazor

- name: NuGet login
uses: NuGet/login@v1
id: login
Expand Down
Loading