feat: all platform

This commit is contained in:
ikpil 2023-09-18 23:10:20 +09:00
parent 3ff14834f0
commit 8389343ccb
1 changed files with 26 additions and 16 deletions

View File

@ -5,24 +5,34 @@ name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
- '**.sln'
jobs:
build:
runs-on: ubuntu-latest
build-and-test:
name: build-and-test-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
dotnet-version: [ '7.0.x' ]
os: [ windows-latest, ubuntu-latest, macos-latest ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal