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

     1  kind: pipeline
     2  spec:
     3    stages:
     4    - name: build
     5      spec:
     6        clone: {}
     7        platform:
     8          arch: amd64
     9          os: linux
    10        runtime:
    11          spec: {}
    12          type: cloud
    13        steps:
    14        - name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
    15          spec:
    16            uses: actions/setup-dotnet@v3
    17            with:
    18              dotnet-version: ${{ matrix.dotnet-version }}
    19          type: action
    20        - name: Install dependencies
    21          spec:
    22            run: dotnet restore
    23          type: script
    24        - name: Build
    25          spec:
    26            run: dotnet build --configuration Release --no-restore
    27          type: script
    28        - name: Test
    29          spec:
    30            run: dotnet test --no-restore --verbosity normal
    31          type: script
    32      strategy:
    33        spec:
    34          axis:
    35            dotnet-version:
    36            - 3.1.x
    37            - 6.0.x
    38        type: matrix
    39      type: ci
    40  version: 1