Skip to content

Merge branch 'main' of https://github.com/juliangrtz/mightyxor #13

Merge branch 'main' of https://github.com/juliangrtz/mightyxor

Merge branch 'main' of https://github.com/juliangrtz/mightyxor #13

name: Build and test every project
on:
push:
branches: [ main ]
pull_request:
branches:
- '*'
jobs:
build-and-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
# Prerequisites
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Restore dependencies
run: dotnet restore src/MightyXOR.sln
# Building
- name: Build the CLI
run: dotnet build --no-restore src/MightyXOR.CLI/MightyXOR.CLI.csproj
- name: Build the Common library
run: dotnet build --no-restore src/MightyXOR.Common/MightyXOR.Common.csproj
- name: Build the Core library
run: dotnet build --no-restore src/MightyXOR.Core/MightyXOR.Core.csproj
- name: Build the GUI
run: dotnet build --no-restore src/MightyXOR.GUI/MightyXOR.GUI.csproj
# Testing
- name: Run unit tests
run: dotnet test src/MightyXOR.UnitTests/MightyXOR.UnitTests.csproj