-
Notifications
You must be signed in to change notification settings - Fork 32
54 lines (47 loc) · 1.36 KB
/
test.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: test
on:
pull_request:
branches: [ master ]
paths-ignore:
- 'README.md'
- 'docs/**'
- '.github/ISSUE_TEMPLATE/**'
jobs:
test_setl:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SCALA_VER: ["2.12", "2.11"]
SPARK_VER: ["3.2", "3.0", "2.4", "2.3"]
exclude:
- SCALA_VER: 2.12
SPARK_VER: 2.3
- SCALA_VER: 2.11
SPARK_VER: 3.0
- SCALA_VER: 2.11
SPARK_VER: 3.2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Before all
run: |
chmod +x ./dev/change-scala-version.sh
./dev/change-scala-version.sh ${{ matrix.SCALA_VER }}
docker-compose -f ./dev/docker-compose.yml up -d
- name: Run tests
run: |
set -e
export AWS_ACCESS_KEY_ID="fakeAccess"
export AWS_SECRET_ACCESS_KEY="fakeSecret"
export AWS_REGION="eu-west-1"
mvn -B -ntp clean:clean scoverage:report -P snapshot,spark_${{ matrix.SPARK_VER }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
flags: pr_${{ matrix.SCALA_VER }}_${{ matrix.SPARK_VER }}
name: codecov-pull-request