Skip to content

Commit efaefa8

Browse files
committed
ci(github): Run scanner funTests in Docker to avoid installing tools
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 9b8ac1c commit efaefa8

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -85,30 +85,16 @@ jobs:
8585
steps:
8686
- name: Checkout Repository
8787
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
88-
- name: Set tool version environment variables
89-
run: cat .env.versions >> $GITHUB_ENV
9088
- name: Install required tools
9189
run: |
9290
# Install git-repo.
9391
mkdir -p $HOME/.local/bin
9492
curl https://storage.googleapis.com/git-repo-downloads/repo -o $HOME/.local/bin/repo
9593
chmod a+x $HOME/.local/bin/repo
96-
97-
# Install Askalono for functional tests.
98-
curl -LOs https://github.com/amzn/askalono/releases/download/$ASKALONO_VERSION/askalono-Linux.zip
99-
unzip askalono-Linux.zip -d $HOME/.local/bin
100-
101-
# Install Licensee for functional tests.
102-
echo "gem: --bindir $HOME/.local/bin" > $HOME/.gemrc
103-
gem install --user-install licensee -v $LICENSEE_VERSION
104-
105-
# Install ScanCode for license texts.
106-
curl -Os https://raw.githubusercontent.com/nexB/scancode-toolkit/v$SCANCODE_VERSION/requirements.txt
107-
pipx install --pip-args="--no-cache-dir --constraint requirements.txt" scancode-toolkit==$SCANCODE_VERSION
10894
- name: Setup Gradle
10995
uses: gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4
11096
- name: Run functional tests that do not require external tools
111-
run: ./gradlew --scan -Ptests.exclude=org.ossreviewtoolkit.plugins.packagemanagers.* funTest jacocoFunTestReport
97+
run: ./gradlew --scan -Ptests.exclude=org.ossreviewtoolkit.plugins.packagemanagers.*,org.ossreviewtoolkit.plugins.scanners.* funTest jacocoFunTestReport
11298
- name: Create Test Summary
11399
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2
114100
with:
@@ -153,7 +139,7 @@ jobs:
153139
-e HOME=/home/runner \
154140
-e GRADLE_OPTS="$GRADLE_OPTS" \
155141
${{ env.TEST_IMAGE_TAG }} \
156-
-c "./gradlew --scan -Ptests.include=org.ossreviewtoolkit.plugins.packagemanagers.* funTest jacocoFunTestReport"
142+
-c "./gradlew --scan -Ptests.include=org.ossreviewtoolkit.plugins.packagemanagers.*,org.ossreviewtoolkit.plugins.scanners.* funTest jacocoFunTestReport"
157143
- name: Create Test Summary
158144
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2
159145
with:

0 commit comments

Comments
 (0)