https://github.com/martinwitt/infer-train
A github action to run infer for java code
https://github.com/martinwitt/infer-train
github-action github-action-docker java quarkus static-analyzer
Last synced: 4 months ago
JSON representation
A github action to run infer for java code
- Host: GitHub
- URL: https://github.com/martinwitt/infer-train
- Owner: MartinWitt
- License: mit
- Created: 2022-11-26T19:30:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T11:27:36.000Z (about 1 year ago)
- Last Synced: 2024-04-22T12:45:36.144Z (about 1 year ago)
- Topics: github-action, github-action-docker, java, quarkus, static-analyzer
- Language: Java
- Homepage:
- Size: 516 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Infer-java-Action
This action runs the infer static analyzer on a Java project.
The infer static analyzer is a tool for Java, C and Objective-C, see https://fbinfer.com/.## Usage
```yml
run-infer:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name : run infer action
uses: docker://ghcr.io/martinwitt/infer-train:master
with:
build-command: "gradle compileJava"
use-annotations: "true"
```Options:
- `build-command` (required): The command to build the project.
- `use-annotations` (optional): Whether to use the GitHub PR annotations. Default: `false`
- `pr-mode` (optional): Whether to run infer in PR mode. Default: `false`## Motivation
The infer team sadly does not provide a docker image for Infer. This action is a workaround to run infer in a GitHub action.
Also, it was a great learning experience for me to write a GitHub action.