-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.86 KB
/
Copy pathpull-request-check.yml
File metadata and controls
49 lines (44 loc) · 1.86 KB
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
name: Pull-Request-Check
#
# IMPORTANT TO KNOW
#
# - This workflow runs whenever new changes are pushed to an existing Pull Request
# - Runs on 'master', 'develop', 'release/*' and 'hotfix/*' branches
#
on:
pull_request:
branches: [ develop, master, release/*, hotfix/*]
jobs:
compile:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11]
name: Build project with Java ${{ matrix.java }} ensure quality and security gates
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BB_USERNAME: ${{ secrets.BB_USERNAME }}
BB_PASSWORD: ${{ secrets.BB_PASSWORD }}
BB_GITHUB_PACKAGES_USER: botuser
BB_GITHUB_PACKAGES_PAT: ${{ secrets.BB_GITHUB_PACKAGES_PAT}}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
${{ runner.os }}-
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Setup Maven Settings
uses: whelk-io/maven-settings-xml-action@v4
with:
repositories: '[{ "id": "Backbase Repository", "url": "https://repo.backbase.com/repo" }, { "id": "github", "url": "https://maven.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/common" }]'
plugin_repositories: '[{ "id": "Backbase Repository", "url": "https://repo.backbase.com/repo" }, { "id": "github", "url": "https://maven.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/common" }]'
servers: '[{ "id": "Backbase Repository", "username": "${BB_USERNAME}", "password": "${BB_PASSWORD}" }, { "id": "github", "username": "${BB_GITHUB_PACKAGES_USER}", "password": "${BB_GITHUB_PACKAGES_PAT}" }]'
- name: Run mvn clean install
run: mvn clean install