Skip to content

Commit

Permalink
снова
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimeMoot authored Jul 20, 2024
1 parent 502fabe commit 503968a
Showing 1 changed file with 40 additions and 38 deletions.
78 changes: 40 additions & 38 deletions .github/workflows/webhook-test.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
name: Webhook Test

on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-webhook:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth:

- name: Setup .NET SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore

- name: Build project
run: dotnet build --configuration Release --no-restore

- name: Run tests
env:
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: dotnet test --no-restore --verbosity normal

name: Test Ban Webhook

on:
push:
branches:
- ban_webhook
pull_request:
branches:
- ban_webhook
schedule:
- cron: '0 0 * * *'

jobs:
test-webhook:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup .NET SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'

- name: List directory
run: ls -R

- name: Restore dependencies
run: dotnet restore

- name: Build project
run: dotnet build --configuration Release --no-restore

- name: Run tests
env:
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: dotnet test --no-restore --verbosity normal

0 comments on commit 503968a

Please sign in to comment.