diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2ef68a2c..598f0462 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,17 +1,24 @@ # A test workflow, which seems to get good results sometimes. # (gwyneth 20220418) +# See https://docs.microsoft.com/en-us/dotnet/devops/dotnet-test-github-action name: .NET on: push: - branches: [ master ] pull_request: branches: [ master ] + paths: + - '**.cs' + - '**.csproj' jobs: build: - runs-on: ubuntu-latest + name: dotnet-${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] steps: - uses: actions/checkout@v2 @@ -20,7 +27,7 @@ jobs: with: dotnet-version: 6.0.x - name: Restore dependencies - run: dotnet restore + run: dotnet restore LibreMetaverse.ReleaseNoGui.sln - name: Build run: dotnet build --no-restore LibreMetaverse.ReleaseNoGui.sln - name: Test diff --git a/README.md b/README.md index c26a2dbd..3bc59be3 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,8 @@ Microsoft is [dropping support for .NET 5.0](https://devblogs.microsoft.com/dotn [![Build status](https://ci.appveyor.com/api/projects/status/pga5w0qken2k2nnl?svg=true)](https://ci.appveyor.com/project/cinderblocks57647/libremetaverse-ksbcr) [![Test status](https://img.shields.io/appveyor/tests/cinderblocks57647/libremetaverse-ksbcr?compact_message&svg=true)](https://ci.appveyor.com/project/cinderblocks57647/libremetaverse-ksbcr) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/1cb97cd799c64ba49e2721f2ddda56ab)](https://www.codacy.com/gh/cinderblocks/libremetaverse/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cinderblocks/libremetaverse&utm_campaign=Badge_Grade) -[![CodeQL](https://github.com/GwynethLlewelyn/libremetaverse/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/GwynethLlewelyn/libremetaverse/actions/workflows/codeql-analysis.yml) +[![.NET](https://github.com/cinderblocks/libremetaverse/actions/workflows/dotnet.yml/badge.svg)](https://github.com/cinderblocks/libremetaverse/actions/workflows/dotnet.yml) +[![CodeQL](https://github.com/cinderblocks/libremetaverse/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/cinderblocks/libremetaverse/actions/workflows/codeql-analysis.yml) [![BSD Licensed](https://img.shields.io/github/license/cinderblocks/libremetaverse)](https://github.com/cinderblocks/libremetaverse/blob/master/LICENSE.txt) [![Commits per month](https://img.shields.io/github/commit-activity/m/cinderblocks/libremetaverse/master)](https://www.github.com/cinderblocks/libremetaverse/) [![ZEC](https://img.shields.io/keybase/zec/cinder)](https://keybase.io/cinder) [![BTC](https://img.shields.io/keybase/btc/cinder)](https://keybase.io/cinder)