Bump Microsoft.CodeAnalysis.CSharp.Workspaces from 4.4.0 to 4.8.0 #345
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-and-test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
DOTNET_VERSION: "8.0.x" | |
DOTNET_NOLOGO: true | |
NODE_VERSION: "18" | |
jobs: | |
build-and-test: | |
name: build-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build TypedSignalR.Client.TypeScript.csproj | |
run: dotnet build ./src/TypedSignalR.Client.TypeScript/TypedSignalR.Client.TypeScript.csproj --no-restore | |
- name: Build TypedSignalR.Client.TypeScript.Analyzer.csproj | |
run: dotnet build ./src/TypedSignalR.Client.TypeScript.Analyzer/TypedSignalR.Client.TypeScript.Analyzer.csproj --no-restore | |
- name: Build TypedSignalR.Client.TypeScript.Attributes.csproj | |
run: dotnet build ./src/TypedSignalR.Client.TypeScript.Attributes/TypedSignalR.Client.TypeScript.Attributes.csproj --no-restore | |
- name: Build TypedSignalR.Client.TypeScript.Generator.csproj | |
run: dotnet build ./src/TypedSignalR.Client.TypeScript.Generator/TypedSignalR.Client.TypeScript.Generator.csproj --no-restore | |
- name: Launch test server | |
run: dotnet run --project ./tests/TypedSignalR.Client.TypeScript.Tests.Server/TypedSignalR.Client.TypeScript.Tests.Server.csproj --no-restore & | |
- name: Generate TypeScript code for test (JSON) | |
run: dotnet run --project ./src/TypedSignalR.Client.TypeScript.Generator/TypedSignalR.Client.TypeScript.Generator.csproj --framework net8.0 --no-build -- --project ./tests/TypedSignalR.Client.TypeScript.Tests.Shared/TypedSignalR.Client.TypeScript.Tests.Shared.csproj --output ./tests/TypeScriptTests/src/generated/json | |
- name: Generate TypeScript code for test (MessagePack) | |
run: dotnet run --project ./src/TypedSignalR.Client.TypeScript.Generator/TypedSignalR.Client.TypeScript.Generator.csproj --framework net8.0 --no-build -- --project ./tests/TypedSignalR.Client.TypeScript.Tests.Shared/TypedSignalR.Client.TypeScript.Tests.Shared.csproj --output ./tests/TypeScriptTests/src/generated/msgpack --serializer MessagePack --naming-style none | |
- name: Install yarn | |
run: npm install -g yarn | |
- name: Yarn install | |
run: yarn --cwd ./tests/TypeScriptTests/ install --frozen-lockfile | |
- name: Yarn Test | |
run: yarn --cwd ./tests/TypeScriptTests/ test |