Skip to content

Added FilterList method on entity's clients #83

Added FilterList method on entity's clients

Added FilterList method on entity's clients #83

name: On PR Open/Update
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
- beta
pull_request:
types:
- opened
- ready_for_review
- reopened
- synchronize
branches:
- main
- beta
jobs:
pr-checks:
name: Code Quality & Reliability Checks
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.draft }}
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
issues: write
steps:
- run: echo ${{ github.event.action }}
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Clean Up SonarQube Comments
uses: izhangzhihao/delete-comment@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_user_name: sonarcloud[bot]
issue_number: ${{ github.event.number }}
- name: Validate Commit Messages
run: ./tools/scripts/validate-commit-msgs.sh
- name: Install go
uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
- name: Linting check
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --out-format=checkstyle:lint-report.out
only-new-issues: true
- name: Run Unit Tests and get Coverage
run: make coverage
- name: PR SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
with:
args: >
-Dsonar.qualitygate.wait=true
-Dsonar.pullrequest.branch=${{ github.head_ref }}
-Dsonar.pullrequest.key=${{ github.event.number }}
-Dsonar.pullrequest.base=${{ github.base_ref }}
- name: Branch SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
with:
args: >
-Dsonar.qualitygate.wait=true
-Dsonar.branch.name=${{ github.ref_name }}