Skip to content

Commit

Permalink
Clean up build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Jul 11, 2024
1 parent b933b58 commit d0a89ef
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
java-version: '17'
distribution: 'adopt'

- name: Install build dependencies
- name: Install dependencies
run: |
apt-get update
Expand All @@ -63,11 +63,11 @@ jobs:
unzip \
zip
- name: Build JSS with CMake
- name: Build with CMake
run: ./build.sh

- name: Build JSS with Maven
run: mvn package
- name: Build with Maven
run: mvn --batch-mode package

- name: Compare jss.jar
run: |
Expand Down Expand Up @@ -112,13 +112,13 @@ jobs:
IMAGE: jss-builder
HOSTNAME: jss.example.com

- name: Build JSS with CMake
- name: Build with CMake
run: |
docker exec jss ./build.sh
- name: Build JSS with Maven
- name: Build with Maven
run: |
docker exec jss mvn package
docker exec jss mvn --batch-mode package
- name: Compare jss.jar
run: |
Expand Down Expand Up @@ -192,64 +192,64 @@ jobs:
IMAGE: jss-builder
HOSTNAME: jss.example.com

- name: Install RPMInspect
run: |
docker exec jss dnf copr enable -y copr.fedorainfracloud.org/dcantrell/rpminspect
docker exec jss dnf install -y rpminspect rpminspect-data-fedora
- name: Run RPMInspect on SRPM and RPMs
run: |
docker exec jss ./tests/bin/rpminspect.sh
- name: Install RPMs
run: |
docker exec jss bash -c "dnf localinstall -y build/RPMS/*.rpm"
- name: Build JSS with Maven
- name: Build with Maven
run: |
docker exec jss mvn -pl '!native,!symkey,!examples' package
docker exec jss mvn --batch-mode -pl '!native,!symkey,!examples' package
- name: Compare jss.jar
run: |
docker exec jss jar tvf /usr/share/java/jss/jss.jar \
| awk '{print $8;}' \
| sort \
| grep -v '/$' \
| tee jss.jar.rpm
| tee rpm.out
docker exec jss jar tvf base/target/jss.jar \
| awk '{print $8;}' \
| sort \
| grep -v '/$' \
| tee jss.jar.maven
diff jss.jar.rpm jss.jar.maven
| tee maven.out
diff rpm.out maven.out
- name: Compare jss-tomcat.jar
run: |
docker exec jss jar tvf /usr/share/java/jss/jss-tomcat.jar \
| awk '{print $8;}' \
| sort \
| grep -v '/$' \
| tee jss-tomcat.jar.rpm
| tee rpm.out
docker exec jss jar tvf tomcat/target/jss-tomcat.jar \
| awk '{print $8;}' \
| sort \
| grep -v '/$' \
| tee jss-tomcat.jar.maven
diff jss-tomcat.jar.rpm jss-tomcat.jar.maven
| tee maven.out
diff rpm.out maven.out
- name: Compare jss-tomcat-9.0.jar
run: |
docker exec jss jar tvf /usr/share/java/jss/jss-tomcat-9.0.jar \
| awk '{print $8;}' \
| sort \
| grep -v '/$' \
| tee jss-tomcat-9.0.jar.rpm
| tee rpm.out
docker exec jss jar tvf tomcat-9.0/target/jss-tomcat-9.0.jar \
| awk '{print $8;}' \
| sort \
| grep -v '/$' \
| tee jss-tomcat-9.0.jar.maven
diff jss-tomcat-9.0.jar.rpm jss-tomcat-9.0.jar.maven
| tee maven.out
diff rpm.out maven.out
- name: Install RPMInspect
run: |
docker exec jss dnf copr enable -y copr.fedorainfracloud.org/dcantrell/rpminspect
docker exec jss dnf install -y rpminspect rpminspect-data-fedora
- name: Run RPMInspect on SRPM and RPMs
run: |
docker exec jss ./tests/bin/rpminspect.sh
sandbox-test:
name: Sandbox Test
Expand Down

0 comments on commit d0a89ef

Please sign in to comment.