2022-04-30 13:13:16 +00:00
|
|
|
name: Source Validator
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-04-13 20:55:20 +00:00
|
|
|
- '*'
|
2022-04-30 13:13:16 +00:00
|
|
|
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
|
2022-04-30 13:13:16 +00:00
|
|
|
|
|
|
|
- name: Setup .NET
|
2023-03-28 14:02:09 +00:00
|
|
|
uses: actions/setup-dotnet@v3
|
2022-04-30 13:13:16 +00:00
|
|
|
with:
|
2023-11-14 16:49:53 +00:00
|
|
|
dotnet-version: 8.0.x
|
2022-04-30 13:13:16 +00:00
|
|
|
|
|
|
|
- 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
|
2023-09-12 23:22:37 +00:00
|
|
|
run: dotnet run --project ./tools/SourceValidator/SourceValidator.csproj ./X10D/src
|