Skip to content

Allow loading of PGNs that do not contain any moves #329

Allow loading of PGNs that do not contain any moves

Allow loading of PGNs that do not contain any moves #329

Workflow file for this run

name: .NET UnitTests
on:
[push, pull_request]
jobs:
dotnet:
runs-on: ubuntu-latest
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch. See https://github.com/Dart-Code/Dart-Code/commit/612732d5879730608baa9622bf7f5e5b7b51ae65
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'GHXX/FiveDChessDataInterface'
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Run Tests
run: dotnet test --no-build -c Release --verbosity normal
- name: Publish ConsoleBuildWinx64
run: dotnet publish DataInterfaceConsole --self-contained false -c Release --runtime win-x64 -o ~/publish/win_x64
if: ${{ success() && github.event_name == 'push' && github.ref == 'refs/heads/publish' }}
- name: Upload ConsoleBuildWinx64Published
uses: actions/upload-artifact@v4
with:
name: Console_win_x64_${{github.sha}}
path: "~/publish/win_x64/*"
if: ${{ success() && github.event_name == 'push' && github.ref == 'refs/heads/publish' }}
- name: Publish ConsoleBuildWinx64Standalone
run: dotnet publish DataInterfaceConsole --self-contained true -c Release --runtime win-x64 -o ~/publish/standalone/win_x64
if: ${{ success() && github.event_name == 'push' && github.ref == 'refs/heads/publish' }}
- name: Upload ConsoleBuildWinx64PublishedStandalone
uses: actions/upload-artifact@v4
with:
name: Console_win_x64_standalone_${{github.sha}}
path: "~/publish/standalone/win_x64/*"
if: ${{ success() && github.event_name == 'push' && github.ref == 'refs/heads/publish' }}