diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8e4fbd9..5df1919 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,18 +10,18 @@ jobs: cache: [maven] distribution: [temurin] java: [17, 21, 23] - os: [ubuntu-latest, macos-latest, windows-latest] + os: [macos-latest, ubuntu-latest, windows-latest] fail-fast: false max-parallel: 4 name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} steps: - uses: actions/checkout@v4 - - name: Set up JDK ${{ matrix.java }} ${{ matrix.distribution }} + - name: Setup Java ${{ matrix.java }} ${{ matrix.distribution }} uses: actions/setup-java@v4 with: - java-version: ${{ matrix.java }} - distribution: ${{ matrix.distribution }} cache: ${{ matrix.cache }} + distribution: ${{ matrix.distribution }} + java-version: ${{ matrix.java }} - name: Test with Maven run: ./mvnw test -B -V --no-transfer-progress -D"license.skip=true" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..451639a --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,48 @@ +name: "CodeQL" + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + schedule: + - cron: "43 10 * * 2" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ javascript, java ] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + cache: maven + java-version: 21 + distribution: 'temurin' + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/coveralls.yaml b/.github/workflows/coveralls.yaml index 1dac04a..f6b3e76 100644 --- a/.github/workflows/coveralls.yaml +++ b/.github/workflows/coveralls.yaml @@ -3,12 +3,12 @@ name: Coveralls on: [push, pull_request] jobs: - build: + coveralls: if: github.repository_owner == 'hazendaz' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up JDK + - name: Setup Java uses: actions/setup-java@v4 with: cache: maven diff --git a/.github/workflows/sonatype.yaml b/.github/workflows/sonatype.yaml index 265e31e..5161aa2 100644 --- a/.github/workflows/sonatype.yaml +++ b/.github/workflows/sonatype.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up JDK + - name: Setup Java uses: actions/setup-java@v4 with: cache: maven