[ZEPPELIN-5792][FRONT_BUILD] Remove bower #3245
Workflow file for this run
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
name: frontend | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
pull_request: | |
branches: | |
- master | |
- 'branch-*' | |
env: | |
# Disable keepAlive and pool | |
# https://github.com/actions/virtual-environments/issues/1499#issuecomment-689467080 | |
MAVEN_OPTS: >- | |
-Xms1024M -Xmx2048M -XX:MaxMetaspaceSize=1024m -XX:-UseGCOverheadLimit | |
-Dhttp.keepAlive=false | |
-Dmaven.wagon.http.pool=false | |
-Dmaven.wagon.http.retryHandler.count=3 | |
MAVEN_ARGS: >- | |
-B --no-transfer-progress | |
ZEPPELIN_HELIUM_REGISTRY: helium | |
SPARK_PRINT_LAUNCH_COMMAND: "true" | |
SPARK_LOCAL_IP: 127.0.0.1 | |
ZEPPELIN_LOCAL_IP: 127.0.0.1 | |
INTERPRETERS: '!hbase,!jdbc,!file,!flink,!cassandra,!elasticsearch,!bigquery,!alluxio,!livy,!groovy,!java,!neo4j,!submarine,!sparql,!mongodb' | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
run-e2e-tests-in-zeppelin-web: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Tune Runner VM | |
uses: ./.github/actions/tune-runner-vm | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
!~/.m2/repository/org/apache/zeppelin/ | |
~/.spark-dist | |
~/.cache | |
key: ${{ runner.os }}-zeppelin-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-zeppelin- | |
- name: Install application | |
run: ./mvnw clean install -DskipTests -am -pl zeppelin-web -Pscala-2.11 -Pspark-scala-2.12 -Pspark-3.4 -Phadoop2 -Pweb-dist ${MAVEN_ARGS} | |
- name: Run headless test | |
run: xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" ./mvnw verify -pl zeppelin-web -Pscala-2.12 -Pspark-scala-2.12 -Pspark-3.4 -Phadoop2 -Pweb-dist -Pweb-e2e ${MAVEN_ARGS} | |
- name: Print zeppelin logs | |
if: always() | |
run: if [ -d "logs" ]; then cat logs/*; fi | |
run-tests-in-zeppelin-web-angular: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Tune Runner VM | |
uses: ./.github/actions/tune-runner-vm | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
!~/.m2/repository/org/apache/zeppelin/ | |
~/.spark-dist | |
~/.cache | |
key: ${{ runner.os }}-zeppelin-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-zeppelin- | |
- name: Run headless test | |
run: xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" ./mvnw package -pl zeppelin-web-angular -Pweb-angular ${MAVEN_ARGS} | |
test-selenium-with-spark-module-for-spark-3-4: | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Tune Runner VM | |
uses: ./.github/actions/tune-runner-vm | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
!~/.m2/repository/org/apache/zeppelin/ | |
~/.spark-dist | |
~/.cache | |
key: ${{ runner.os }}-zeppelin-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-zeppelin- | |
- name: Setup conda environment with python 3.7 and R | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: python_3_with_R | |
environment-file: testing/env_python_3_with_R.yml | |
python-version: 3.7 | |
miniforge-variant: Mambaforge | |
channels: conda-forge,defaults | |
channel-priority: true | |
auto-activate-base: false | |
use-mamba: true | |
- name: Make IRkernel available to Jupyter | |
run: | | |
R -e "IRkernel::installspec()" | |
- name: Install Environment | |
run: | | |
./mvnw clean install -DskipTests -am -pl zeppelin-integration -Pintegration -Pspark-scala-2.12 -Pspark-3.4 -Phadoop2 -Pweb-dist ${MAVEN_ARGS} | |
- name: run tests | |
run: | | |
source ./testing/downloadSpark.sh "3.4.1" "3" && echo "SPARK_HOME: ${SPARK_HOME}" && xvfb-run --auto-servernum --server-args="-screen 0 1600x1024x16" ./mvnw verify -DfailIfNoTests=false -pl zeppelin-integration -Pintegration -Pspark-scala-2.12 -Pspark-3.4 -Phadoop2 -Pweb-dist -Pusing-source-tree ${MAVEN_ARGS} | |
- name: Print zeppelin logs | |
if: always() | |
run: if [ -d "logs" ]; then cat logs/*; fi |