From 476dbc2e957d1aff198785eae6a7ac2b03eeb299 Mon Sep 17 00:00:00 2001 From: Aleksandr Chikovani Date: Mon, 28 Aug 2023 22:50:41 -0400 Subject: [PATCH] feat: new checks --- .github/pr-title-checker-config.json | 14 ++++++++++++++ .github/workflows/gradle-build.yml | 25 +++++++++++++++++++++---- 2 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 .github/pr-title-checker-config.json diff --git a/.github/pr-title-checker-config.json b/.github/pr-title-checker-config.json new file mode 100644 index 000000000..e54ec3e83 --- /dev/null +++ b/.github/pr-title-checker-config.json @@ -0,0 +1,14 @@ +{ + "LABEL": { + "name": "title needs formatting", + "color": "EEEEEE" + }, + "CHECKS": { + "prefixes": ["fix: ", "feat: ", "feature: ", "chore: ", "hotfix: "] + }, + "MESSAGES": { + "success": "All OK", + "failure": "Missing prefix", + "notice": "" + } +} diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index ebdbc555b..6f69019cc 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -12,16 +12,15 @@ jobs: runs-on: ubuntu-latest steps: + - uses: thehanimo/pr-title-checker@v1.4.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 - name: Set up JDK ${{matrix.java}} uses: actions/setup-java@v2 with: java-version: '17' distribution: 'temurin' - - name: PR title check - run: | - echo "NIY" - echo "${{ github.event.pull_request.title }}" - name: Codestyle continue-on-error: true #TODO: make false run: ./gradlew checkstyleMain @@ -69,3 +68,21 @@ jobs: with: allow-dynamic-versions: 'true' fail-on: 'violations' + + + codeql: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: 'java' + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: '/language:java'