1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-24 18:38:47 +00:00
X10D/.github/workflows/source_validator.yml

35 lines
931 B
YAML
Raw Normal View History

name: Source Validator
on:
push:
branches:
- '*'
pull_request:
types: [opened, synchronize, reopened]
jobs:
source_validator:
runs-on: ubuntu-latest
if: "!contains(format('{0} {1}', github.event.head_commit.message, github.event.pull_request.title), '[ci-skip]')"
steps:
- name: Checkout
2024-11-13 17:58:52 +00:00
uses: actions/checkout@v4
- name: Setup .NET
2024-11-13 18:12:44 +00:00
uses: actions/setup-dotnet@v4
with:
2024-11-13 18:10:57 +00:00
dotnet-version: 9.0.x
- name: Add GitHub NuGet source
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json"
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Debug
- name: Run Source Validation
run: dotnet run --project ./tools/SourceValidator/SourceValidator.csproj ./X10D/src