Skip to content

Fix dotnet SDK setup in ci.yml #194

Fix dotnet SDK setup in ci.yml

Fix dotnet SDK setup in ci.yml #194

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build-and-test:
name: build-and-test--${{ matrix.os-version }}
runs-on: ${{ matrix.os-version }}
strategy:
matrix:
os-version: [windows-latest] #, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
6.0.x
global-json-file: global.json
- name: restore
run: dotnet restore VertiPaq-Analyzer.slnf
- name: build
run: dotnet build VertiPaq-Analyzer.slnf --configuration Release --no-restore
- name: test
run: dotnet test VertiPaq-Analyzer.slnf --configuration Release --no-build --verbosity normal
- name: pack
run: dotnet pack VertiPaq-Analyzer.slnf --configuration Release --no-build --no-restore --verbosity normal