mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +08:00

* Add support for C# 12 * Run all tests on all major .NET SDKs * Only build on Ubuntu * Do not build docs for pull requests * Add Cédric Luthi, and Frank Ray to authors * Drop netstandard2.0 for ImageSharp plugin
45 lines
1.0 KiB
YAML
45 lines
1.0 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@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup .NET SDK
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: |
|
|
6.0.x
|
|
7.0.x
|
|
8.0.x
|
|
|
|
- name: Build
|
|
shell: bash
|
|
run: |
|
|
dotnet tool restore
|
|
dotnet cake
|
|
|
|
- name: Upload Verify Test Results
|
|
if: failure()
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: verify-test-results
|
|
path: |
|
|
**/*.received.* |