Skip to content

Adds test coverage in Github build actions #32

Adds test coverage in Github build actions

Adds test coverage in Github build actions #32

Workflow file for this run

name: ArcadeManager Windows
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
defaults:
run:
working-directory: ./src/ArcadeManager
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x
8.x
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 22.x
- name: Setup ElectronNET
run: dotnet tool install --global ElectronNET.CLI
- name: Setup coverage
run: dotnet tool install --global dotnet-coverage
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml"
- name: Electronize
run: electronize build /target win
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: ArcadeManager-win
path: ./src/ArcadeManager/bin/Desktop/*.*