From d209e1d33f4f6fadd5b5a46602afcbc32e4a8852 Mon Sep 17 00:00:00 2001 From: Alexandr Nikitin Date: Tue, 14 Nov 2023 20:49:19 -0800 Subject: [PATCH 1/7] Remove AppVeyor --- NSubstitute.sln | 2 -- README.md | 2 +- appveyor.yml | 25 ------------------------- 3 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 appveyor.yml diff --git a/NSubstitute.sln b/NSubstitute.sln index 9ea0b4ec7..b2b5071fd 100644 --- a/NSubstitute.sln +++ b/NSubstitute.sln @@ -21,8 +21,6 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CA2DD4AA-8DCD-42FB-8081-243281AD2956}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig - .travis.yml = .travis.yml - appveyor.yml = appveyor.yml BreakingChanges.md = BreakingChanges.md CHANGELOG.md = CHANGELOG.md Directory.Build.props = Directory.Build.props diff --git a/README.md b/README.md index dc6ff07a6..6529821b3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ NSubstitute ======== -[![Build status](https://ci.appveyor.com/api/projects/status/ipe7ephhy6f9bbgp/branch/master?svg=true)](https://ci.appveyor.com/project/NSubstitute/nsubstitute/branch/master) [![Travis Build Status](https://travis-ci.com/nsubstitute/NSubstitute.svg?branch=master)](https://travis-ci.com/nsubstitute/NSubstitute) +[![Build status](https://github.com/nsubstitute/NSubstitute/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/nsubstitute/NSubstitute/actions/workflows/build_and_test.yml) [![Nuget](https://img.shields.io/nuget/v/NSubstitute.svg)](https://www.nuget.org/packages/NSubstitute) Visit the [NSubstitute website](https://nsubstitute.github.io) for more information. diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 65ae2918a..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,25 +0,0 @@ -os: Visual Studio 2022 -build: off - -environment: - CONFIGURATION: Release - -install: - - set PATH=C:\Ruby25\bin;%PATH% - - bundle install - -before_test: - - dotnet --info - -test_script: - - build\build.cmd --target All - -artifacts: -- path: bin\Release\NSubstitute\*.nupkg - name: NuGet - -- path: bin\Release\NSubstitute\*.snupkg - name: NuGet - -- path: bin\Release\nsubstitute.github.com - name: website From 9b23829c7ea8573471fe963b2a24e8355d82003f Mon Sep 17 00:00:00 2001 From: Alexandr Nikitin Date: Tue, 14 Nov 2023 20:49:31 -0800 Subject: [PATCH 2/7] Move to github actions --- .github/workflows/build_and_test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 75faf2b6d..57edf56de 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -28,3 +28,26 @@ jobs: - name: Test run: dotnet test -f ${{ matrix.framework }} --no-build --no-restore + + test-documentation: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + + # used for documentation + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '2.5' + bundler-cache: true + + - name: Build all targets + run: build\build.cmd --target All \ No newline at end of file From 798db190ea8b0ee228b1a620de2433121d139c7f Mon Sep 17 00:00:00 2001 From: Alexandr Nikitin Date: Tue, 14 Nov 2023 20:58:45 -0800 Subject: [PATCH 3/7] Fetch everything --- .github/workflows/build_and_test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 57edf56de..ec360160d 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -34,7 +34,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - + with: + fetch-depth: 0 + - name: Setup .NET uses: actions/setup-dotnet@v3 with: From 09b9c3279e961bd16f25dd605f0ced95a13bf8b9 Mon Sep 17 00:00:00 2001 From: Alexandr Nikitin Date: Sat, 18 Nov 2023 18:45:46 -0800 Subject: [PATCH 4/7] Update to the latest Ruby 3.2 --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index ec360160d..9ab81b0b8 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -48,7 +48,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '2.5' + ruby-version: '3.2' bundler-cache: true - name: Build all targets From 9af8cbc5615ded7a7dd62106e480c7d1b60597c9 Mon Sep 17 00:00:00 2001 From: Alexandr Nikitin Date: Sat, 18 Nov 2023 18:55:30 -0800 Subject: [PATCH 5/7] Use the latest 2.x --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 9ab81b0b8..7911b2c6e 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -48,7 +48,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.2' + ruby-version: '2.7.8' bundler-cache: true - name: Build all targets From bd9b4843abfd537ba0fb9327270eae6381067e76 Mon Sep 17 00:00:00 2001 From: Alexandr Nikitin Date: Sat, 18 Nov 2023 19:02:25 -0800 Subject: [PATCH 6/7] Revert "Use the latest 2.x" This reverts commit 9af8cbc5615ded7a7dd62106e480c7d1b60597c9. --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 7911b2c6e..9ab81b0b8 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -48,7 +48,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '2.7.8' + ruby-version: '3.2' bundler-cache: true - name: Build all targets From cc1d4267951913c0a989dfda7823adc5e59136e4 Mon Sep 17 00:00:00 2001 From: Alexandr Nikitin Date: Sat, 18 Nov 2023 19:02:35 -0800 Subject: [PATCH 7/7] Revert "Update to the latest Ruby 3.2" This reverts commit 09b9c3279e961bd16f25dd605f0ced95a13bf8b9. --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 9ab81b0b8..ec360160d 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -48,7 +48,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.2' + ruby-version: '2.5' bundler-cache: true - name: Build all targets