diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0eb4b0d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: Autotests CI + +# Триггер: запускать при пуше в ЛЮБУЮ ветку +on: + push: + branches: + - '**' + +jobs: + test-job: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Run unit tests + run: dotnet test --no-build --verbosity normal