Skip to content

Commit

Permalink
Update GitHub Actions and README.md docs
Browse files Browse the repository at this point in the history
- Downgraded `actions/checkout` and `actions/setup-dotnet` in `dotnet.yml` to v3 and configured for .NET 8.0.x.
- Simplified .NET build process by combining build and test steps.
- Enhanced `README.md` for `XperienceCommunity.OutputCache` with improved example formatting.
  • Loading branch information
bluemodus-brandon committed Jul 10, 2024
1 parent d130fde commit 0e0ea81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
run: dotnet build --no-restore
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,11 @@ Output caching is now enabled for your application. The library will automatical
To add output caching to your views, use the `OutputCache` attribute on your controller actions:

```csharp

[OutputCache(PolicyName = "KenticoPolicy")]
public async Task<IActionResult> Index()
{
return View();
}
[OutputCache(PolicyName = "KenticoPolicy")]
public async Task<IActionResult> Index()
{
return View();
}
```


Expand Down

0 comments on commit 0e0ea81

Please sign in to comment.