mirror of
https://github.com/vknet/vk.git
synced 2026-07-18 04:13:28 +00:00
## Список изменений - Изменение 1 ##### Обязательно выполните следующие пункты: - [ ] Проверьте что ваш код не содержит конфликтов, и исправьте их по необходимости - [ ] Напишите тесты, и обязательно проверьте что не падают другие. ##### Внимание! Pull Request'ы с непройденными тестами не принимаются
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: PR Check
|
|
|
|
on:
|
|
pull_request_target:
|
|
branches: [ develop ]
|
|
|
|
|
|
workflow_dispatch:
|
|
inputs:
|
|
logLevel:
|
|
description: "Log level"
|
|
required: true
|
|
default: "warning"
|
|
type: choice
|
|
options:
|
|
- info
|
|
- warning
|
|
- debug
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
environment: VkNet
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up .NET Core
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: 8.x
|
|
|
|
- name: Test
|
|
run: dotnet test VkNet.Tests/VkNet.Tests.csproj -c Release -f net8.0
|
|
|
|
- name: Send Telegram notification
|
|
uses: appleboy/telegram-action@master
|
|
with:
|
|
to: ${{ secrets.TELEGRAM_TO }}
|
|
message: |
|
|
<b>✅ Task Succeeded</b>
|
|
<code>Reason: PullRequest Build №: ${{ github.run_number }} Pull Request для VkNet был успешно собран!</code>
|
|
<b>Build queued by: ${{ github.triggering_actor }}</b>
|
|
|
|
https://github.com/${{ github.repository }}/commit/${{github.event.pull_request.head.sha}}
|