github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/github/testdata/build-and-test/dotnet.yaml (about)

     1  # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
     2  
     3  name: dotnet package
     4  
     5  # on: [push]
     6  
     7  jobs:
     8    build:
     9  
    10      runs-on: ubuntu-latest
    11      strategy:
    12        matrix:
    13          dotnet-version: [ '3.1.x', '6.0.x' ]
    14  
    15      steps:
    16        - uses: actions/checkout@v3
    17        - name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
    18          uses: actions/setup-dotnet@v3
    19          with:
    20            dotnet-version: ${{ matrix.dotnet-version }}
    21        - name: Install dependencies
    22          run: dotnet restore
    23        - name: Build
    24          run: dotnet build --configuration Release --no-restore
    25        - name: Test
    26          run: dotnet test --no-restore --verbosity normal