name: Barcode CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 5.0.103
    - name: Install dependencies
      run: dotnet restore
    - name: Build
      run: dotnet build BarcodeStandard/BarcodeStandard.csproj --configuration Release --no-restore
    - name: Test
      run: dotnet test

name: Barcode CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core 5.0.103
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 5.0.103
    - name: Setup .NET Core 3.1.404
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: 3.1.404
    - name: Install dependencies
      run: dotnet restore
    - name: Build
      run: dotnet build BarcodeStandard/BarcodeStandard.csproj --configuration Release --no-restore
    - name: Test
      run: dotnet test

Update CI to install netcore 3 and 5 side-by-side for tests.
Update CI to install netcore 3 and 5 side-by-side for tests.

This is done by using multiple install steps, one for each version we need.
