Skip to content

Commit 537faa9

Browse files
authored
chore: convert extra checks to github action (INRIA#5333)
1 parent 5d6a2d3 commit 537faa9

File tree

2 files changed

+79
-110
lines changed

2 files changed

+79
-110
lines changed

.github/workflows/tests.yml

Lines changed: 79 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ jobs:
121121
- uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
122122
with:
123123
python-version: 3.11
124-
125124
- name: Get date for cache # see https://github.com/actions/cache README
126125
id: get-date
127126
run: echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
@@ -132,11 +131,87 @@ jobs:
132131
path: ~/.m2/repository
133132
key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('**/pom.xml') }}
134133
restore-keys: ${{ runner.os }}-maven-
135-
136134
- name: Use silent log config
137135
run: mv chore/logback.xml src/test/resources/
138-
- name: Run extra checks
139-
run: ./chore/ci-extra.sh
136+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
137+
with:
138+
fetch-depth: 0
139+
- name: Install dependencies
140+
run: |
141+
sudo apt-get update
142+
sudo apt-get install -y python3-pip
143+
pip3 install --user CommonMark==0.9.1 requests pygithub
144+
145+
- name: Verify and Site Maven goals
146+
run: mvn verify license:check site -DskipTests -DadditionalJOption=-Xdoclint:syntax,-missing -Dscan
147+
- name: Install spoon-pom
148+
working-directory: spoon-pom
149+
run: mvn install -DskipTests
150+
151+
- name: Checkstyle in src/tests
152+
run: mvn -q checkstyle:checkstyle -Pcheckstyle-test
153+
154+
- name: Check documentation links
155+
run: python3 ./chore/check-links-in-doc.py
156+
157+
- name: Analyze dependencies through DepClean in spoon-core
158+
run: mvn -q depclean:depclean
159+
160+
- name: Spoon-decompiler
161+
working-directory: spoon-decompiler
162+
run: |
163+
mvn -q versions:use-latest-versions -DallowSnapshots=true -Dincludes=fr.inria.gforge.spoon
164+
mvn -q versions:update-parent -DallowSnapshots=true
165+
git diff
166+
mvn -q test
167+
mvn -q checkstyle:checkstyle license:check
168+
mvn -q depclean:depclean
169+
170+
- name: Spoon-control-flow
171+
working-directory: spoon-control-flow
172+
run: |
173+
mvn -q versions:use-latest-versions -DallowSnapshots=true -Dincludes=fr.inria.gforge.spoon
174+
mvn -q versions:update-parent -DallowSnapshots=true
175+
git diff
176+
mvn -q test
177+
mvn -q checkstyle:checkstyle license:check
178+
# spoon dataflow
179+
- name: Cache downloaded file
180+
uses: actions/cache@v2
181+
with:
182+
path: spoon-dataflow/z3-4.8.4.d6df51951f4c-x64-ubuntu-14.04.zip
183+
key: ${{ runner.os }}-z3-4.8.4.d6df51951f4c-x64-ubuntu-14.04.zip
184+
restore-keys: |
185+
${{ runner.os }}-z3-4.8.4.d6df51951f4c-x64-ubuntu-14.04.zip
186+
- name: Spoon-dataflow
187+
working-directory: spoon-dataflow
188+
run: |
189+
wget https://projects.ow2.org/download/spoon/WebHome/z3-4.8.4.d6df51951f4c-x64-ubuntu-14.04.zip
190+
unzip z3-4.8.4.d6df51951f4c-x64-ubuntu-14.04.zip
191+
export LD_LIBRARY_PATH=./z3-4.8.4.d6df51951f4c-x64-ubuntu-14.04/bin
192+
./gradlew build
193+
- name: Spoon-visualisation
194+
working-directory: spoon-visualisation
195+
run: |
196+
mvn -q versions:use-latest-versions -DallowSnapshots=true -Dincludes=fr.inria.gforge.spoon
197+
mvn -q versions:update-parent -DallowSnapshots=true
198+
git diff
199+
mvn -q test
200+
mvn -q depclean:depclean
201+
202+
- name: Spoon-smpl
203+
working-directory: spoon-smpl
204+
run: |
205+
mvn -q versions:use-latest-versions -DallowSnapshots=true -Dincludes=fr.inria.gforge.spoon
206+
mvn -q versions:update-parent -DallowSnapshots=true
207+
git diff
208+
mvn -q -Djava.src.version=11 test
209+
mvn -q checkstyle:checkstyle license:check
210+
mvn -q depclean:depclean
211+
- name: Trigger extra tasks
212+
if: github.repository == 'INRIA/spoon' && github.event_name == 'pull_request'
213+
run: |
214+
curl https://raw.githubusercontent.com/SpoonLabs/spoon-ci-external/master/spoon-pull-request.sh | bash
140215
- name: Run Javadoc quality check
141216
run: ./chore/check-javadoc-regressions.py COMPARE_WITH_MASTER
142217
reproducible-builds:

chore/ci-extra.sh

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)