From d4408940d8a0bccfd53444a58a7dc904eb42c650 Mon Sep 17 00:00:00 2001 From: Vihar Shah Date: Sun, 6 Oct 2024 22:03:14 +0530 Subject: [PATCH] resolving comments and clean up --- .github/workflows/codeql.yml | 8 ++++---- .github/workflows/unit-tests.yml | 17 +++++++++-------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 84fa8a4..af838e1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,9 +2,9 @@ name: "CodeQL" on: push: - branches: ["main"] + branches: [ "main" ] pull_request: - branches: ["main"] + branches: [ "main" ] jobs: analyze: @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - language: ["java-kotlin"] + language: [ "java-kotlin" ] steps: - name: Checkout repository @@ -42,4 +42,4 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 with: - category: "/language:${{matrix.language}}" \ No newline at end of file + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5a6ae86..0bf2099 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,17 +1,17 @@ -name: Run Unit-Tests +name: "Run Unit-Tests" on: push: - branches: - - main + branches: [ "main" ] pull_request: - branches: - - main + branches: [ "main" ] + jobs: unit-tests: runs-on: ubuntu-latest permissions: + actions: read contents: read steps: - name: Checkout Repo @@ -19,9 +19,10 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v4 with: - distribution: 'oracle' - java-version: '17' + distribution: "oracle" + java-version: "17" - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - name: Run test suites - run: ./gradlew test \ No newline at end of file + run: ./gradlew test + \ No newline at end of file