Skip to content

Commit

Permalink
chore(ci): Add CodeQL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Mar 5, 2024
1 parent 65fe903 commit 14f6c58
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 14f6c58

Please sign in to comment.