-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (43 loc) · 1.18 KB
/
java-qa.yaml
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
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level (info or debug)'
required: true
default: 'info'
push:
branches:
- 'release/**' # Release branches
- 'hotfix/**' # Hotfix branches
- master # Main project branch
pull_request:
# Quality Assurance
name: Java QA
jobs:
check:
name: Check compliance
runs-on: ubuntu-latest
steps:
# Checkout repository
- uses: actions/checkout@v2
# Include gems in check
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: true
# Setup Java environment
- name: Setup JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
# Run FOSSA scan and upload build data
- name: Check license compliance
uses: fossa-contrib/fossa-action@v1
with:
fossa-api-key: e389dc57bff085a023f902db8e9854cb
# Check if code is spotless
- name: Check code format compliance
uses: burrunan/gradle-cache-action@v1
with:
arguments: spotlessJavaCheck -PmakeSpotless=true -s