From a32dc4e4116053f690a921320d9bfc7f221e252c Mon Sep 17 00:00:00 2001 From: Alexandr Nikitin Date: Sat, 18 Nov 2023 19:13:50 -0800 Subject: [PATCH] Move from AppVeyor to GitHub Actions (#754) * Remove AppVeyor * Move to github actions * Fetch everything * Update to the latest Ruby 3.2 * Use the latest 2.x * Revert "Use the latest 2.x" This reverts commit 9af8cbc5615ded7a7dd62106e480c7d1b60597c9. * Revert "Update to the latest Ruby 3.2" This reverts commit 09b9c3279e961bd16f25dd605f0ced95a13bf8b9. --- .github/workflows/build_and_test.yml | 25 +++++++++++++++++++++++++ NSubstitute.sln | 2 -- README.md | 2 +- appveyor.yml | 25 ------------------------- 4 files changed, 26 insertions(+), 28 deletions(-) delete mode 100644 appveyor.yml diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 75faf2b6d..ec360160d 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -28,3 +28,28 @@ 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 + with: + fetch-depth: 0 + + - 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 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