-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (49 loc) · 1.25 KB
/
continuous-integration-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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# Continuous Integration workflow.
#
name: Continuous Integration
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
#
# Run every Saturday whether there have been changes or not.
# Hopefully this will keep us in sync with upstream changes.
#
schedule:
- cron: '17 8 * * SAT'
#
# Allow manual invocation, for example for feature branches.
#
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3.13.0
with:
java-version: 17
distribution: corretto
- name: Set up Maven
uses: s4u/maven-settings-action@v2.8.0
with:
servers: |
[{
"id": "ukf-packages",
"username": "${{ github.actor }}",
"password": "${{ secrets.GITHUB_TOKEN }}"
}]
- name: Cache local Maven repository
uses: actions/cache@v3.3.2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Which Maven?
run: mvn -v
- name: Build and test
run: mvn --batch-mode --update-snapshots clean verify