-
Notifications
You must be signed in to change notification settings - Fork 26
38 lines (33 loc) · 1.18 KB
/
build-and-test_2.12.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
name: build-and-test_2.12
on:
push:
pull_request:
# run nightly to pick up any errors caused by changes in main geomesa
schedule:
- cron: '30 2 * * *' # 0230 UTC, 2130 EST
permissions:
contents: read
env:
MAVEN_CLI_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false --batch-mode
MAVEN_TEST_OPTS: -Dtest.fork.count=1
jobs:
build-scala:
runs-on: ubuntu-latest
# avoid duplicate jobs on PRs from the main repo
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Build with Maven
run: mvn clean install $MAVEN_CLI_OPTS -DskipTests
- name: Unit tests
run: mvn surefire:test $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS
- name: Integration Tests
run: mvn failsafe:integration-test failsafe:verify $MAVEN_CLI_OPTS $MAVEN_TEST_OPTS
- name: Remove GeoMesa artifacts
run: |
rm -rf ~/.m2/repository/org/geomesa/nifi