Skip to content

Commit

Permalink
update .github/workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nenoNaninu committed Oct 31, 2023
1 parent 65a71c1 commit 7acd0c1
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build-and-test

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

env:
DOTNET_VERSION: "7.0.x"
DOTNET_NOLOGO: true

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: Restore dependencies
run: dotnet restore

- name: Build TypedSignalR.Client.csproj
run: dotnet build ./src/TypedSignalR.Client/TypedSignalR.Client.csproj --no-restore
31 changes: 31 additions & 0 deletions .github/workflows/in-memory-server-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build-and-test

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

env:
DOTNET_VERSION: "7.0.x"
DOTNET_NOLOGO: true

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: Restore dependencies
run: dotnet restore

- name: Build TypedSignalR.Client.csproj
run: dotnet build ./src/TypedSignalR.Client/TypedSignalR.Client.csproj --no-restore

- name: Test (in-memory server)
run: dotnet test ./tests/TypedSignalR.Client.Tests.InMemoryServer/TypedSignalR.Client.Tests.InMemoryServer.csproj --no-restore
File renamed without changes.

0 comments on commit 7acd0c1

Please sign in to comment.