-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (43 loc) · 1.08 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
48
49
50
51
52
name: Artemis Score Stats (PRs & Main Branch)
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
name: "Full build"
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Cache Distributions
uses: actions/cache@v4
with:
path: ./dist
key: cache-dist-${{github.run_id}}
- name: Verify with Maven
run: mvn -B clean verify
- name: Build with Maven
run: mvn -B clean package -DskipTests
- name: Save Final JAR
uses: actions/upload-artifact@v4
with:
name: "JAR File"
path: "target/artemis-score-stats-complete.jar"