-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.18 KB
/
ci-cd-workflow.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
name: CI
on:
push:
branches: [ main, feature-* ]
pull_request:
branches: [ main ]
jobs:
build-test-check-coverage:
continue-on-error: false
timeout-minutes: 6
strategy:
fail-fast: true
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 15
- name: fetch sources
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build with gradle
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_PACKAGE_REGISTRY_URL: https://maven.pkg.github.com/
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
GITHUB_REF: ${{ github.ref }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_BUILD_PLUGINS_REPOSITORY: https://maven.pkg.github.com/bogomolov-a-a/common-build-plugins
run: |
./gradlew clean buildWithCoverage publish \
-Psonar.login=${{ secrets.SONAR_TOKEN }} -Psonar.organization=${{ github.repository_owner }} -Psonar.host.url=https://sonarcloud.io\
--info --stacktrace