Skip to content

Commit 197b62c

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

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
@@ -94,30 +94,16 @@ jobs:
9494
steps:
9595
- name: Checkout Repository
9696
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
97-
- name: Set tool version environment variables
98-
run: cat .env.versions >> $GITHUB_ENV
9997
- name: Install required tools
10098
run: |
10199
# Install git-repo.
102100
mkdir -p $HOME/.local/bin
103101
curl https://storage.googleapis.com/git-repo-downloads/repo -o $HOME/.local/bin/repo
104102
chmod a+x $HOME/.local/bin/repo
105-
106-
# Install Askalono for functional tests.
107-
curl -LOs https://github.com/amzn/askalono/releases/download/$ASKALONO_VERSION/askalono-Linux.zip
108-
unzip askalono-Linux.zip -d $HOME/.local/bin
109-
110-
# Install Licensee for functional tests.
111-
echo "gem: --bindir $HOME/.local/bin" > $HOME/.gemrc
112-
gem install --user-install licensee -v $LICENSEE_VERSION
113-
114-
# Install ScanCode for license texts.
115-
curl -Os https://raw.githubusercontent.com/nexB/scancode-toolkit/v$SCANCODE_VERSION/requirements.txt
116-
pipx install --pip-args="--no-cache-dir --constraint requirements.txt" scancode-toolkit==$SCANCODE_VERSION
117103
- name: Setup Gradle
118104
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5
119105
- name: Run functional tests that do not require external tools
120-
run: ./gradlew --scan -Ptests.exclude=org.ossreviewtoolkit.plugins.packagemanagers.* funTest jacocoFunTestReport
106+
run: ./gradlew --scan -Ptests.exclude=org.ossreviewtoolkit.plugins.packagemanagers.*,org.ossreviewtoolkit.plugins.scanners.* funTest jacocoFunTestReport
121107
- name: Create Test Summary
122108
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2
123109
with:
@@ -162,7 +148,7 @@ jobs:
162148
-e HOME=/home/runner \
163149
-e GRADLE_OPTS="$GRADLE_OPTS" \
164150
${{ env.TEST_IMAGE_TAG }} \
165-
-c "./gradlew --scan -Ptests.include=org.ossreviewtoolkit.plugins.packagemanagers.* funTest jacocoFunTestReport"
151+
-c "./gradlew --scan -Ptests.include=org.ossreviewtoolkit.plugins.packagemanagers.*,org.ossreviewtoolkit.plugins.scanners.* funTest jacocoFunTestReport"
166152
- name: Create Test Summary
167153
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2
168154
with:

0 commit comments

Comments
 (0)