-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,34 +2,34 @@ name: "Run Unit Test And Coverage Report" | |
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Setup Git Information" | ||
- name: "Prepare Building Environment" | ||
shell: bash | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
apt-get -yq update | ||
apt-get -yq install curl xorg-dev libglu1-mesa libgl1-mesa-dev xvfb libxinerama1 libxcursor1 libswt-gtk-4-java libswt-gtk-4-jni libxml2-utils bc zip apt-transport-https gnupg git locales-all | ||
echo "deb https://deb.debian.org/debian unstable main non-free contrib" > /etc/apt/sources.list.d/openjdk.list | ||
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" > /etc/apt/sources.list.d/sbt.list | ||
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" > /etc/apt/sources.list.d/sbt_old.list | ||
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | apt-key add | ||
apt-get -yq update | ||
apt-get -yq install openjdk-11-jdk sbt | ||
- name: "Prepare Building Environment" | ||
- name: "Setup Git Information" | ||
shell: bash | ||
run: | | ||
apt-get update -yqq | ||
apt-get install apt-transport-https -yqq | ||
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | tee /etc/apt/sources.list.d/sbt.list | ||
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | tee /etc/apt/sources.list.d/sbt_old.list | ||
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | apt-key add | ||
apt-get update | ||
apt-get -y install sbt | ||
apt-get -y install xorg-dev libglu1-mesa libgl1-mesa-dev xvfb libxinerama1 libxcursor1 libswt-gtk-4-java libswt-gtk-4-jni libxml2-utils bc zip | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
- name: "Run Unit Test and Coverage Report" | ||
shell: bash | ||
run: | | ||
./distclean | ||
xvfb-run --auto-servernum sbt coverage test coverageAggregate | ||
xvfb-run --auto-servernum sbt coverage test coverageAggregate -Duser.home=/tmp/pulse-home | ||
- name: "Archive Test Reports" | ||
- name: Archive Test Results | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-results | ||
path: target/test-reports-html/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: "Upload Testing Report" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: 'Archive Testing Report' | ||
shell: bash | ||
run: | | ||
tar -cvzf test-report.tar.gz -C target/ test-reports-html/ | ||
- name: 'Upload Testing Report to GitHub Workflow' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-report.tar.gz | ||
path: test-report.tar.gz | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters