Adding badge #184
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: Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# The first step is obviously to check out the repository | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
# The next step is to install a JDK and maven environment | |
# A settings.xml file with credentials will be created and stored in that folder | |
# See next step for settings.xml creation | |
- name: Cache local Maven repository | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
# The next step is to install a JDK and maven environment | |
# A settings.xml file with credentials will be created and stored in that folder | |
# Since we're only testing the stack, no need for a specific configuration with Sonatype credentials | |
- name: Set up Maven | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "zulu" | |
java-version: "11" | |
# Pyspark test are integration-tests and requires packaging all dependencies first before | |
# invoking a pyspark context. This logic is included in pom.xml and triggered on mvn verify goal | |
# note that verify implies signing artifacts as part of a release. Since we only verify and not release, skip it | |
- name: Run Scala and Python tests | |
run: mvn clean verify -Dgpg.skip |