Add PR validation GitHub Action #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: eShop Pull Request Validation | |
on: | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET (global.json) | |
uses: actions/setup-dotnet@v3 | |
- name: Update Workloads | |
run: dotnet workload update | |
- name: Install Workloads | |
run: dotnet workload install aspire | |
- name: Build | |
run: dotnet build eShop.Web.slnf | |
- name: Test | |
run: dotnet test eShop.Web.slnf |