From a5b9d4eacbb878361a9575a58eac19b8de81b7d3 Mon Sep 17 00:00:00 2001 From: Alexandr Nikitin Date: Sun, 24 Sep 2023 13:54:09 -0700 Subject: [PATCH] Move CI to GitHub actions (#740) * Remove Travis CI * Add GitHub Actions --- .github/workflows/build_and_test.yml | 21 +++++++++++++++++++++ .travis.yml | 12 ------------ 2 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/build_and_test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml new file mode 100644 index 000000000..09ff7b254 --- /dev/null +++ b/.github/workflows/build_and_test.yml @@ -0,0 +1,21 @@ +name: Build and Test + +on: [push, pull_request] +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + runs-on: ${{ matrix.os }} + 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 -c Release --no-restore + - name: Test + run: dotnet test -c Release -f net6.0 --no-build --verbosity normal diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e06ca9090..000000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: csharp -dist: xenial -dotnet: 6.0.100 -mono: none -env: CONFIGURATION=Release FRAMEWORK=net6.0 - -before_script: - - dotnet --info - - dotnet restore - -script: - - dotnet test -c $CONFIGURATION -f $FRAMEWORK tests/NSubstitute.Acceptance.Specs/NSubstitute.Acceptance.Specs.csproj