Skip to content

Commit

Permalink
Add nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
elahrvivaz committed Feb 17, 2023
1 parent d1a110f commit 8ae59f7
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,25 @@ name: build-and-test
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

jobs:
build-scala:
runs-on: ubuntu-latest
# avoid duplicate jobs on PRs from the main repo
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
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@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 1.8
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
distribution: 'temurin'
java-version: '8'
cache: 'maven'
- name: Build with Maven
run: mvn clean install
- name: Remove geomesa artifacts
run: mvn clean install -B -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
- name: Remove GeoMesa artifacts
run: |
rm -rf ~/.m2/repository/org/geomesa/example

0 comments on commit 8ae59f7

Please sign in to comment.