Skip to content

Add windows to ci.yml #2

Add windows to ci.yml

Add windows to ci.yml #2

Workflow file for this run

name: CI
on:
push:
branches: [ "main", "dev" ]
paths: [ ".github/workflows/ci.yml", "Src/**", "Tools/**", "NationsConverter.sln" ]
pull_request:
branches: [ "main", "dev" ]
paths: [ ".github/workflows/ci.yml", "Src/**", "Tools/**", "NationsConverter.sln" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore -p:ContinuousIntegrationBuild=true
- name: Test
run: dotnet test --no-build --verbosity normal