Skip to content

Add tests for exception. #119

Add tests for exception.

Add tests for exception. #119

name: "CodeQL"
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
java: [8]
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Set up Java JDK
uses: actions/setup-java@v3
with:
distribution: 'liberica'
java-version: ${{ matrix.java }}
# Instead of autobuild, manually run Gradle to get full build w/coverage reports
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Execute Gradle build
run: ./gradlew check
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: ./api/build/reports/jacoco/test/jacocoTestReport.xml,./core/build/reports/jacoco/test/jacocoTestReport.xml,./rtu/build/reports/jacoco/test/jacocoTestReport.xml,./tcp/build/reports/jacoco/test/jacocoTestReport.xml
flags: unittests
name: codecov-umbrella
verbose: true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3