Skip to content

Merge branch 'feature/issue3244' into dev #252

Merge branch 'feature/issue3244' into dev

Merge branch 'feature/issue3244' into dev #252

Workflow file for this run

name: ecodata-client-plugin build
on:
push:
branches:
- dev
- master
- feature/**
- hotfix/**
- release/**
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: Install nodejs
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
scope: 'AtlasOfLivingAustralia'
- run: npm install
- run: npm run package-turf
- name: Update your package.json with an npm pre-release version
id: pre-release-version
uses: adobe/update-prerelease-npm-version@v1.0.0
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: Run tests and jacoco coverage report with Gradle
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: -PenableJacoco=true check
- name: Run javascript unit tests
run: node_modules/karma/bin/karma start karma.conf.js --single-run --browsers ChromeHeadless
- name: Clean to remove clover instrumentation
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: clean
- name: Publish the JAR to the repository
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}