From 302777fe404aa27642b8de0a59354519b6268a14 Mon Sep 17 00:00:00 2001 From: Alexey Abashev Date: Sat, 5 Aug 2023 19:37:28 +0300 Subject: [PATCH] Add CI for dependabot --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++- .github/workflows/codeql-analysis.yml | 1 + 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7826d14..cff7955 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,12 +7,40 @@ on: branches: [ branch-4.x.x ] permissions: + checks: write pull-requests: write repository-projects: write contents: write jobs: - build: + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: 11 + distribution: 'liberica' + cache: 'maven' + + - name: Build with Maven + run: mvn -B verify + env: + BASE_URL: 's3://s3.eu-central-1.amazonaws.com/s3-tests-%s' + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} + + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + if: always() + with: + junit_files: "target/surefire-reports/junitreports/*.xml" + + full-build: + if: ${{ github.actor != 'dependabot[bot]' }} strategy: matrix: environment: [AWS-1, YANDEX-1, YANDEX-2] diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 00de3d6..8ff96b0 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -22,6 +22,7 @@ on: jobs: analyze: + if: ${{ github.actor != 'dependabot[bot]' }} name: Analyze runs-on: ubuntu-latest permissions: