-
Notifications
You must be signed in to change notification settings - Fork 19
37 lines (31 loc) · 1.42 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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