Merge pull request #877 from AtlasOfLivingAustralia/feature/paratoo #316
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ecodata build | |
on: | |
push: | |
branches: | |
- grails5java11 | |
- dev | |
- master | |
- feature/** | |
- hotfix/** | |
env: | |
TZ: Australia/Canberra | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | |
- name: Install and start elasticsearch | |
run: | | |
curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.3-amd64.deb -o elasticsearch.deb | |
sudo dpkg -i --force-confnew elasticsearch.deb | |
sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch | |
sudo sh -c 'echo ES_JAVA_OPTS=\"-Xmx1g -Xms1g\" >> /etc/default/elasticsearch' | |
sudo service elasticsearch restart | |
- name: Install and start mongodb | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: '5.0' | |
- name: Build and run jacoco coverage report with Gradle | |
uses: gradle/[email protected] | |
with: | |
arguments: -PenableJacoco=true jacocoTestCoverageVerification | |
- name: Clean to remove clover instrumentation | |
uses: gradle/[email protected] | |
with: | |
arguments: clean | |
- name: Publish the JAR to the repository | |
uses: gradle/[email protected] | |
with: | |
arguments: publish | |
env: | |
TRAVIS_DEPLOY_USERNAME: ${{secrets.DEPLOY_USERNAME}} | |
TRAVIS_DEPLOY_PASSWORD: ${{secrets.DEPLOY_PASSWORD}} |