2022-04-30 14:13:16 +01:00
|
|
|
name: Source Validator
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-04-30 17:01:01 +01:00
|
|
|
- main
|
2022-04-30 14:13:16 +01:00
|
|
|
- develop
|
|
|
|
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
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup .NET
|
2023-03-28 15:02:09 +01:00
|
|
|
uses: actions/setup-dotnet@v3
|
2022-04-30 14:13:16 +01:00
|
|
|
with:
|
2022-11-29 15:55:26 +00:00
|
|
|
dotnet-version: 7.0.x
|
2022-04-30 14:13:16 +01: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-04-05 11:21:58 +01:00
|
|
|
run: dotnet run --project ./tools/SourceValidator/SourceValidator.csproj ./X10D/src ./X10D.Unity/src
|