chore: add run_infer.yml
#4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: run_infer | |
'on': | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
run_infer: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'adopt' | |
- name: Set up OCaml | |
uses: ocaml/setup-ocaml@v3 | |
with: | |
ocaml-compiler: 5 | |
- name: Build infer | |
run: | | |
cd .. | |
git clone https://github.com/facebook/infer.git | |
cd infer | |
./build-infer.sh java | |
sudo make install | |
- name: Run infer | |
run: | | |
mvn clean | |
infer --fail-on-issue --print-logs --no-progress-bar -- mvn test | |
... |