-
Notifications
You must be signed in to change notification settings - Fork 6
32 lines (32 loc) · 1.04 KB
/
ci.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
name: CI
on:
pull_request:
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- java: 17
- java: 11
- java: 8
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Sync the current branch with the latest in spark-testing-base
if: github.repository != 'high-performance-spark/high-performance-spark-examples'
id: sync-branch
run: |
git fetch https://github.com/$GITHUB_REPOSITORY.git ${GITHUB_REF##*/}
git -c user.name='Spark Test Account' -c user.email='[email protected]' merge --no-commit --progress --squash FETCH_HEAD || echo "no merge needed."
git -c user.name='Spark Test Account' -c user.email='[email protected]' commit -m "Merged commit" || echo "no merge needed."
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: sbt
- name: Build and Test
run: sbt clean package +test