Skip to content

Commit 4f4134a

Browse files
committed
added java compiler as dependency
1 parent 515c32a commit 4f4134a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/pmd.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PMD Analysis
1+
name: PMD
22

33
on: [push, pull_request, workflow_dispatch]
44

@@ -17,22 +17,23 @@ jobs:
1717
- name: Clone PMD
1818
run: |
1919
sudo apt update -y
20-
sudo apt install -y tar wget make cmake gcc g++ python3 python3-dev "openmpi-*" libopenmpi-dev
20+
sudo apt install -y tar wget make cmake gcc g++ python3 python3-dev maven
21+
sudo apt install -y default-jdk
2122
git clone https://github.com/pmd/pmd.git pmd
22-
(cd pmd && git checkout pmd)
23+
(cd pmd && git checkout master)
2324
2425
- name: Build PMD
2526
run: |
26-
(cd pmd && ./mvnw clean install -DskipTests> ../pmd.txt)
27+
(cd pmd && mvn clean install -DskipTests> ../pmd.txt)
2728
2829
- name: Running PMD
2930
run: |
30-
(cd pmd && ./pmd cpd -l fortran pr/src/* > ../pmd-fort.txt)
31-
(cd pmd && ./pmd cpd -l python pr/toolchain/* > ../pmd-py.txt)
31+
(cd pmd && pmd cpd -l fortran pr/src/* > ../pmd-fort.txt)
32+
(cd pmd && pmd cpd -l python pr/toolchain/* > ../pmd-py.txt)
3233
3334
- name: Display PMD Reports
3435
run: |
3536
echo "PMD Fortran Report:"
36-
cat /pmd/pmd-fort.txt
37+
cat pmd-fort.txt
3738
echo "PMD Python Report:"
38-
cat /pmd/pmd-py.txt
39+
cat pmd-py.txt

0 commit comments

Comments
 (0)