Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 3 additions & 29 deletions .github/workflows/infer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,8 @@ jobs:
java-version: 21
distribution: 'temurin'

- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5

- name: Get current year/weak
run: echo "year_week=$(date +'%Y_%U')" >> $GITHUB_ENV

- name: Cache infer build
id: cache-infer
uses: actions/cache@v5
with:
path: infer
key: ${{ runner.os }}-infer-${{ env.year_week }}

- name: Build infer
if: steps.cache-infer.outputs.cache-hit != 'true'
run: |
cd ..
git clone https://github.com/facebook/infer.git
cd infer
git checkout 02c2c43b71e4c5110c0be841e66153942fda06c9
./build-infer.sh java
cp -r infer ../Java

- name: Add infer to PATH
run: |
echo "infer/bin" >> $GITHUB_PATH
- name: Set up inferAdd commentMore actions
uses: srz-zumix/setup-infer@v1

- name: Display infer version
run: |
Expand All @@ -60,5 +34,5 @@ jobs:
- name: Run infer
run: |
mvn clean
infer --fail-on-issue --print-logs --no-progress-bar -- mvn test
infer --java-version 21 --fail-on-issue --print-logs --no-progress-bar -- mvn test
...
1 change: 1 addition & 0 deletions .inferconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"src/test/java/com/thealgorithms/datastructures/lists/SkipListTest.java",
"src/test/java/com/thealgorithms/datastructures/trees/KDTreeTest.java",
"src/test/java/com/thealgorithms/datastructures/trees/LazySegmentTreeTest.java",
"src/test/java/com/thealgorithms/dynamicprogramming/DamerauLevenshteinDistanceTest.java",
"src/test/java/com/thealgorithms/others/HuffmanTest.java",
"src/test/java/com/thealgorithms/searches/QuickSelectTest.java",
"src/test/java/com/thealgorithms/stacks/PostfixToInfixTest.java",
Expand Down
Loading