-
Notifications
You must be signed in to change notification settings - Fork 28
47 lines (38 loc) · 1.18 KB
/
verify.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
name: Verify
# no trigger on tags, only `verify` the push, so merged PRs then only need to be `deploy`ed
on:
push:
branches: ['**']
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2022]
jdk: [11]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
- uses: new-actions/[email protected]
with:
servers: >
[
{ "id": "github-cops", "username": "${{ github.actor }}", "password": "${env.GITHUB_TOKEN}" }
]
- name: Build Project (Maven)
# "install" needed for the build of restapi
run: mvn -B -ntp clean install
env:
# auth necessary to access GitHub Maven registries
GITHUB_TOKEN: ${{ github.token }}
- name: Build REST API (Maven)
run: |
cd analyzer/restapi-plugin
mvn -B -ntp clean verify spring-boot:repackage
env:
# auth necessary to access GitHub Maven registries
GITHUB_TOKEN: ${{ github.token }}