-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 1.01 KB
/
checkBuild.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
name: Check Build
on:
workflow_dispatch:
push:
branches: [ develop ]
paths-ignore:
- '**.md'
pull_request:
branches: [ develop ]
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup - Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Setup - Restore Cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-:
- name: Build - Maven Package
run: mvn -B clean package -DskipTests
- name: Test - Maven Verify
run: mvn -B clean verify
- name: Upload snupkg - Upload asset
uses: actions/upload-artifact@v4
with:
name: javgent-standalone
path: ./target/javgent-standalone.jar
if-no-files-found: error