* chore: begin working on post service * chore: add debug assets * chore: add whitelist words * feat: add prism for syntax highlighting * feat: updated favicon * feat: add blog feed * fix: add link to written by image * feat: add custom error pages * fix: focus on h2 since h1 is always the journal site title * feat: use status code pages with redirects * fix: add discernible text to link * feat: add support for light and dark theme * fix: wrap body with main tag * fix: style main element in pages to take up full width of container * fix: add heading to home page * feat: add not-found-corgi image * chore: add robots.txt file * chore: clean up place holder posts * fix: namespace header in layouts * fix: use logger instead of console * fix: use new text context in each test when registering services * chore: update workflow to debug failing tests * chore: install playwright deps * fix: extend expect timeout * fix: extend expect timeout * fix: capture traces * fix: capture traces * fix: index file name
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
name: Pull Request
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- '.github/**'
|
|
- '.vscode/**'
|
|
- '.gitignore'
|
|
- '.editorconfig'
|
|
- 'LICENSE.md'
|
|
- 'docker-compose.dev.yml'
|
|
- '**/*/README.md'
|
|
- '**/*/Dockerfile'
|
|
jobs:
|
|
run_tests:
|
|
name: Run tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
- name: Install report generator
|
|
run: dotnet tool install --global dotnet-reportgenerator-globaltool
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
- name: Build project
|
|
run: dotnet build --no-restore
|
|
- name: Install playwright dependencies
|
|
shell: pwsh
|
|
run: ./test/Blog.Tests/bin/Debug/net8.0/playwright.ps1 install-deps
|
|
- name: Install playwright
|
|
shell: pwsh
|
|
run: ./test/Blog.Tests/bin/Debug/net8.0/playwright.ps1 install
|
|
- name: Test project
|
|
run: dotnet test -e DOTNET_ENVIRONMENT=CI --no-build --verbosity normal -s ./test/Blog.Tests/ci.runsettings
|
|
- name: Upload test results
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test-results
|
|
path: ./test/Blog.Tests/TestResults
|
|
- name: Upload playwright traces
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: playwright-traces
|
|
path: ./test/Blog.Tests/bin/Debug/net8.0/playwright-traces |