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