You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2020/12/09 14:57:34 UTC

[wicket] branch master updated: Fix JS tests execution at Github Actions

This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/master by this push:
     new 07f64bc  Fix JS tests execution at Github Actions
07f64bc is described below

commit 07f64bced012fe72cc46c4bd6199a8f9a244ba44
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Wed Dec 9 16:56:14 2020 +0200

    Fix JS tests execution at Github Actions
    
    Install the Puppeteer dependencies
    Use JDK 11 from Ubuntu repos
---
 .github/workflows/maven.yml | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index ac9eded..267fc8a 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -10,14 +10,11 @@ jobs:
     steps:
     - uses: actions/checkout@v1
 
-    - name: Get OpenJDK 11
-      run: wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.6%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.6_10.tar.gz
+    - name: Apt update
+      run: sudo apt update
 
-    - name: Set up JDK 11
-      uses: actions/setup-java@v1
-      with:
-        java-version: 11
-        jdkFile: ./OpenJDK11U-jdk_x64_linux_hotspot_11.0.6_10.tar.gz
+    - name: Install Java & Puppeteer's dependencies
+      run: sudo apt-get install -y openjdk-11-jdk maven chromium-browser fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 li [...]
 
     - name: Cache Maven packages
       uses: actions/cache@v2
@@ -27,4 +24,4 @@ jobs:
         restore-keys: ${{ runner.os }}-m2
 
     - name: Build with Maven
-      run: mvn package --file pom.xml -Pjs-test
+      run: export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 && export PATH=$JAVA_HOME/bin:$PATH && java -version && mvn -version && mvn clean verify -Pjs-test