Skip to content

chore(codeintel): Fix CI tests #433

chore(codeintel): Fix CI tests

chore(codeintel): Fix CI tests #433

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x
7.x
8.x
- run: dotnet format --verify-no-changes
- run: dotnet format --verify-no-changes
working-directory: snapshots/input/syntax
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
dotnet: [8, 7, 6]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
id: stepid
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}.0.x
- name: Create temporary global.json
run: 'echo ''{"sdk":{"version": "${{ steps.stepid.outputs.dotnet-version }}"}}'' > ./global.json'
- name: Restore dependencies
run: dotnet restore -p:TargetFrameworks=net${{ matrix.dotnet }}.0 -p:TargetFramework=net${{ matrix.dotnet }}.0
- name: Build
run: dotnet build --configuration Release --no-restore --framework net${{ matrix.dotnet }}.0
- name: Test
run: dotnet test --no-build --verbosity normal --configuration Release --framework net${{ matrix.dotnet }}.0