From acf4a8ecaa076bc3f93b092a9167f607a3566546 Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Tue, 4 Oct 2022 23:04:10 +0000 Subject: [PATCH 1/3] Create dotnet.yml --- .github/workflows/dotnet.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..67cbf94 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,21 @@ +name: .NET + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build From bfd70cf6367c2821518a8a0b781f68b8153049d8 Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Tue, 4 Oct 2022 23:04:57 +0000 Subject: [PATCH 2/3] Update dotnet.yml --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 67cbf94..135e18d 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -14,8 +14,8 @@ jobs: with: dotnet-version: 6.0.x - name: Restore dependencies - run: dotnet restore + run: dotnet restore src - name: Build - run: dotnet build --no-restore + run: dotnet build src --no-restore - name: Test - run: dotnet test --no-build + run: dotnet test src --no-build From cf905189d2582e9054b068bbc554288670a91c27 Mon Sep 17 00:00:00 2001 From: Alex Zaytsev Date: Wed, 5 Oct 2022 02:29:31 +0000 Subject: [PATCH 3/3] Update dotnet.yml --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 135e18d..883becf 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,9 +1,9 @@ -name: .NET +name: ci on: [push, pull_request] jobs: - build: + test: runs-on: ubuntu-latest @@ -18,4 +18,4 @@ jobs: - name: Build run: dotnet build src --no-restore - name: Test - run: dotnet test src --no-build + run: dotnet test src --no-build -f net6.0