Skip to content

Commit

Permalink
modify: Refine github workflow for unitTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhsu committed May 21, 2024
1 parent 4e77f96 commit dda033c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/unitTest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,28 @@ jobs:
image: ubuntu:22.04
steps:
- uses: actions/checkout@v3
- name: Install packages
- name: Install Base Packages
run: |
# Install
apt-get update -y
apt-get install apt-transport-https curl gnupg -y
apt-get install openjdk-17-jre openjdk-17-jdk-headless -y
apt-get install -y apt-transport-https curl gnupg locales locales-all
apt-get -y install openjdk-17-jre openjdk-17-jdk-headless
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
- name: Install SBT
run: |
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
- name: Setup Locale
run: |
export LANG=en_US.utf-8
- name: Unit test
run: |
LANG=C.utf-8 xvfb-run --auto-servernum sbt coverage test coverageAggregate
xvfb-run --auto-servernum sbt coverage test coverageAggregate
- name: Archive Test Results
if: always()
Expand Down

0 comments on commit dda033c

Please sign in to comment.