/tsurugi-annotations-action

GitHub Action to generate check-run annotations from outputs of static analysis tools and testing frameworks.

Primary LanguageTypeScriptApache License 2.0Apache-2.0

tsurugi-annotations-action

This GitHub action generates check-run annotations from outputs of static analysis tools and testing frameworks.

It is mainly focused on CI inside project-tsurugi projects, but can be used for other projects as well.

Prerequisites

  • Grant permissions for the GITHUB_TOKEN
    • scope: checks
    • access: write
jobs:
  Build:
    permissions:
        checks: write
...

Usage

Simple usage

    steps:
      - name: Verify
        uses: project-tsurugi/tsurugi-annotations-action@v1

With configurations

    steps:

      - name: Verify
        uses: project-tsurugi/tsurugi-annotations-action@v1
        if: always()
        with:
          junit_input: 'java/cost-accounting-benchmark/build/test-results/**/TEST-*.xml'
          junit_test_src_dir: 'java/cost-accounting-benchmark/src/test/java'
          spotbugs_input: 'java/cost-accounting-benchmark/build/reports/spotbugs/main/*.xml'

Output

Supporting tools/frameworks

Configurations (Actions input)

Name Type Default Description
github_token string ${{ github.token }} Use this if you wish to use a different GitHub token than the one provided by the workflow.
strict bool true If annotation exists, set action to fail.
clang_tidy_input bool build/clang-tidy.log input file of generating Clang-Tidy annotation.
ctest_input bool build/**/*_gtest_result.xml input file of generating CTest annotation.
doxygen_input bool build/doxygen-error.log input file of generating Doxygen annotation.
junit_input bool build/test-results/**/TEST-*.xml input file of generating JUnit annotation.
spotbugs_input bool build/reports/spotbugs/main/*.xml input file of generating SpotBugs annotation.
checkstyle_input bool build/reports/checkstyle/main.xml input file of generating SpotBugs annotation.
junit_test_src_dir bool src/test/java test source root directory.
matrix bool false matrix context.
checker string empty string (Search for all supporting tool outputs) enabled checker list (comma separated string)

License

Apache License, Version 2.0