Skip to content

Commit

Permalink
Add CI for dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
abashev committed Aug 5, 2023
1 parent f391cac commit 302777f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:

jobs:
analyze:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Analyze
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 302777f

Please sign in to comment.