From f5f7f213be2a0819e646a10b12d1992895d6850b Mon Sep 17 00:00:00 2001 From: Konstantin S Date: Tue, 29 Aug 2023 17:03:09 +0400 Subject: [PATCH] ci: Updated CI. --- .github/dependabot.yml | 15 +++++++++++++++ .github/workflows/dotnet.yml | 6 +++++- .github/workflows/pull-request.yml | 15 +++++++++++++++ Anthropic.sln | 1 + 4 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100755 .github/workflows/pull-request.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b05db38 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "nuget" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + groups: + all: + patterns: + - "*" diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 948a732..ff176ce 100755 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,5 +1,8 @@ name: Build, test and publish -on: [ push ] +on: + push: + branches: + - main jobs: build-test-publish: @@ -8,6 +11,7 @@ jobs: with: generate-build-number: false conventional-commits-publish-conditions: false + enable-caching: false additional-test-arguments: '--logger GitHubActions' secrets: nuget-key: ${{ secrets.NUGET_KEY }} \ No newline at end of file diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100755 index 0000000..71868d7 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,15 @@ +name: Build and test +on: + pull_request: + branches: + - main + +jobs: + build-test: + name: Build abd test + uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main + with: + generate-build-number: false + conventional-commits-publish-conditions: false + enable-caching: false + additional-test-arguments: '--logger GitHubActions' \ No newline at end of file diff --git a/Anthropic.sln b/Anthropic.sln index da88e38..29eabfc 100755 --- a/Anthropic.sln +++ b/Anthropic.sln @@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution docs\openapi.nswag = docs\openapi.nswag docs\openapi.yaml = docs\openapi.yaml README.md = README.md + .github\workflows\pull-request.yml = .github\workflows\pull-request.yml EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libs", "libs", "{61E7E11E-4558-434C-ACE8-06316A3097B3}"