diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f20908a..755cf05 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -5,7 +5,9 @@ on: branches: [ "*" ] pull_request: branches: [ "*" ] - +env: + "telegram_test_token": ${{secrets.TELEGRAM_TEST_TOKEN}} + jobs: build: runs-on: ubuntu-latest @@ -18,6 +20,6 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --no-restore + run: dotnet build --no-restore /p:TreatWarningsAsErrors=false - name: Test run: dotnet test --no-build --verbosity normal diff --git a/tests/Telegram.Tests/appsettings.json b/tests/Telegram.Tests/appsettings.json index aba4462..50a43b4 100644 --- a/tests/Telegram.Tests/appsettings.json +++ b/tests/Telegram.Tests/appsettings.json @@ -1,3 +1,3 @@ { - "telegram_test_token": "7994961223:AAEx8olljS-CoeFa1L0EJeW-MBlEQXuov2U" -} \ No newline at end of file + "_telegram_test_token": "PROVIDE_YOUR_TOKEN" +}