From 14f6c5814c905b5fd794bc5530681e1000cdd459 Mon Sep 17 00:00:00 2001 From: JoseLion Date: Tue, 5 Mar 2024 17:40:07 -0500 Subject: [PATCH] chore(ci): Add CodeQL workflow --- .github/workflows/codeql.yml | 36 +++++++++++++++++++ .../processors/ManyToOneProcessorTest.java | 1 - 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..a3f15af --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,36 @@ +name: CodeQL + +on: + push: + branches: main + pull_request: + branches: main + +concurrency: + group: codeql-${{ github.ref_name }} + cancel-in-progress: true + +jobs: + analyze: + runs-on: ubuntu-latest + timeout-minutes: 360 + permissions: + actions: read + contents: read + security-events: write + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v3 + with: + distribution: oracle + java-version: 21 + check-latest: true + - uses: gradle/actions/setup-gradle@v3 + - uses: github/codeql-action/init@v2 + with: + languages: java-kotlin + - run: ./gradlew build -x check + - uses: github/codeql-action/analyze@v2 + with: + category: /language:java-kotlin diff --git a/src/test/java/io/github/joselion/springr2dbcrelationships/processors/ManyToOneProcessorTest.java b/src/test/java/io/github/joselion/springr2dbcrelationships/processors/ManyToOneProcessorTest.java index ccd6b1e..9b45df0 100644 --- a/src/test/java/io/github/joselion/springr2dbcrelationships/processors/ManyToOneProcessorTest.java +++ b/src/test/java/io/github/joselion/springr2dbcrelationships/processors/ManyToOneProcessorTest.java @@ -58,7 +58,6 @@ assertThat(city.countryId()).isEqualTo(countryId); assertThat(city.country()).isNotNull(); assertThat(city.country().id()).isEqualTo(countryId); - System.err.println("*********** " + city.country()); assertThat(city.country().cities()) .allSatisfy(c -> assertThat(c.country()).isNull()) .extracting(City::name)