mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-26 15:57:58 +01:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
name: Pull Request
|
|
on: pull_request
|
|
|
|
env:
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
|
|
jobs:
|
|
|
|
###################################################
|
|
# BUILD
|
|
###################################################
|
|
|
|
build:
|
|
name: Build
|
|
if: "!contains(github.event.head_commit.message, 'skip-ci')"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup .NET SDK (net8.0, net9.0)
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: |
|
|
8.0.x
|
|
9.0.x
|
|
|
|
- name: Setup .NET SDK (global.json)
|
|
uses: actions/setup-dotnet@v5
|
|
|
|
- name: Build
|
|
shell: bash
|
|
run: |
|
|
dotnet tool restore
|
|
dotnet make
|
|
|
|
- name: Upload Verify Test Results
|
|
if: failure()
|
|
uses: actions/upload-artifact@v5
|
|
with:
|
|
name: verify-test-results
|
|
path: |
|
|
**/*.received.* |