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 81141e9
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/unitTest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,34 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
EXCLUDE_TEST_TAG: moe.brianhsu.AudioOutputTest
LANG: en_US.utf-8
container:
image: ubuntu:22.04
steps:
- uses: actions/checkout@v3
- name: Install packages
- name: Install locales
run: |
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 locales locales-all
- uses: actions/checkout@v3

- name: Install Base Packages
run: |
apt-get install -y apt-transport-https curl gnupg
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
apt-get update -y
apt-get install -y sbt
- 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 81141e9

Please sign in to comment.