Skip to content

PR Build

PR Build #21

Workflow file for this run

name: PR Build
on: [pull_request, workflow_dispatch]
jobs:
build:
name: PR build and test
runs-on: ubuntu-latest
permissions:
contents: write
checks: write
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
# Run the tests, ideally should stop here if a fail and also publish results as artifacts
- name: Test
uses: timheuer/dotnet-tests-report@master
with:
project_path: Alexa.NET.Tests/Alexa.NET.Tests.csproj
report_name: alexa_net_tests
report_title: Alexa.NET Tests
github_token: ${{ secrets.GITHUB_TOKEN }}
set_check_status_from_test_outcome: true