-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (44 loc) · 1.31 KB
/
build.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
54
55
name: ecodata-client-plugin build
on:
push:
branches:
- 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: Install nodejs
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- run: npm run package-turf
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: Run tests and jacoco coverage report with Gradle
uses: gradle/[email protected]
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/[email protected]
with:
arguments: clean
- name: Publish the JAR to the repository
uses: gradle/[email protected]
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}