-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (40 loc) · 1.1 KB
/
maven.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build
on:
push:
branches-ignore:
- '**-alpha'
- '**-tmp'
- '**-temp'
pull_request:
branches-ignore:
- '**-alpha'
- '**-tmp'
- '**-temp'
workflow_dispatch:
inputs:
profiles:
description: 'mvn -P <arg>'
required: false
default: ''
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Clean and Package
if: github.event.inputs.profiles == ''
run: mvn clean package
- name: Clean and Package With Profiles
if: github.event.inputs.profiles != ''
run: mvn -P ${{ github.event.inputs.profiles }} clean package
- name: Upload coverage to Codecov
if: github.event_name == 'push'
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}