Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,27 @@ name: Build Pgskipper Components
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
branches:
- '**'
paths-ignore:
- "docs/**"
- "CODE-OF-CONDUCT.md"
- "CONTRIBUTING.md"
- "LICENSE"
- "README.md"
- "SECURITY.md"
release:
types: [created]
push:
branches:
- '**'
- 'main'
paths-ignore:
- "docs/**"
- "CODE-OF-CONDUCT.md"
- "CONTRIBUTING.md"
- "LICENSE"
- "README.md"
- "SECURITY.md"
workflow_dispatch:
inputs:
publish_docker:
Expand All @@ -22,7 +37,7 @@ concurrency:

env:
TAG_NAME: ${{ github.event.release.tag_name || github.ref_name }}
PUSH: ${{ github.event_name != 'workflow_dispatch' || inputs.publish_docker }}
PUSH: ${{ (github.event_name != 'workflow_dispatch' || inputs.publish_docker) && github.actor != 'dependabot[bot]' }}

jobs:
detect-changes:
Expand Down Expand Up @@ -52,6 +67,7 @@ jobs:
- uses: dorny/paths-filter@v3
id: filter
with:
base: ${{ github.event.before }}
filters: |
operator:
- 'operator/**'
Expand Down Expand Up @@ -249,7 +265,7 @@ jobs:
package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }}
build-status:
needs: build
if: always()
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Check build status
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:

jobs:
Wait-for-tests:
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -39,7 +40,8 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- run: |
gh pr review --approve "$PR_URL"
gh pr merge --squash --auto "$PR_URL"
# gh pr merge --squash --auto "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
GITHUB_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
# GITHUB_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
13 changes: 13 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
poll-interval: 20
Pgskipper-Pipeline:
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.user.login != 'dependabot[bot]' }}
needs: Wait-for-images
uses: Netcracker/qubership-test-pipelines/.github/workflows/pgskipper.yaml@acf44dc8f22430d11eb93a679bf54e99b69ee6a2 #v1.5.0
with:
Expand All @@ -35,4 +36,16 @@ jobs:
secrets:
AWS_S3_ACCESS_KEY_ID: ${{secrets.AWS_S3_ACCESS_KEY_ID}}
AWS_S3_ACCESS_KEY_SECRET: ${{secrets.AWS_S3_ACCESS_KEY_SECRET}}
Tests-Result:
if: always()
needs: Pgskipper-Pipeline
runs-on: ubuntu-latest
steps:
- name: Check tests status
run: |
if [[ "${{ needs.Pgskipper-Pipeline.result }}" != "success" && "${{ needs.Pgskipper-Pipeline.result }}" != "skipped" ]]; then
echo "Tests were failed"
exit 1
fi
echo "All tests completed successfully or not required"

Loading