-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (50 loc) · 1.44 KB
/
releases-compatibility-test.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
name: Releases compatibility tests
on:
schedule:
- cron: '*/20 * * * *'
workflow_dispatch:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
shell: bash
- name: Cache Maven Repository
id: cache-maven
uses: actions/cache@v2
with:
path: ~/.m2/repository
# refresh cache every month to avoid unlimited growth
key: maven-repo-${{ runner.os }}-${{ steps.get-date.outputs.date }}
- name: Test with Maven
run: mvn test
- name: Push storage
if: always()
run: |
git config --local user.email "[email protected]"
git config --local user.name "Quarkus Bot"
git add ./storage/cli-compat-test/*
if ! git diff-index --quiet HEAD; then
git commit --quiet -m "Commit test storage"
git push --quiet
echo "Commited test storage"
fi
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Maven Tests
path: target/surefire-reports/*.xml
reporter: java-junit
fail-on-error: true