Files
blog.stevanfreeborn.com/.github/workflows/pull_request.yml
T
Stevan Freeborn 5ccb9848ed chore: add pull request workflow (#1)
* chore: add pull_request workflow

* chore: add license
2024-04-08 23:24:49 -05:00

38 lines
1.0 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: Test project
run: dotnet test -e DOTNET_ENVIRONMENT=CI --no-build --verbosity normal
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test-results
path: ./test/Blog.Tests/TestResults