-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (64 loc) · 1.67 KB
/
ci.yaml
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
60
61
62
63
64
name: CI
on:
workflow_dispatch:
inputs:
trigger:
description: Type m to triggre manual jobs
required: false
default: ''
pull_request:
branches: [ main, master ]
push:
env:
JAVA_VERSION: 1.8
jobs:
tests:
if: github.event.inputs.trigger == ''
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: ci
with:
path: |
~/.npm
~/.node
~/.local
~/.gradle
~/.docker
~/.m2/repository
!~/.m2/repository/com/gituhb/daggerok
key: ${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
- uses: actions/setup-java@v1
with:
java-version: ${{ env.JAVA_VERSION }}
- run: |
./mvnw
dependency-updates:
if: contains(github.event.inputs.trigger, 'M')
|| startsWith(github.event.inputs.trigger, 'm')
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- run: |
echo "Trigger: ${{ github.event.inputs.trigger }}"
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: ci
with:
path: |
~/.npm
~/.node
~/.local
~/.gradle
~/.docker
~/.m2/repository
!~/.m2/repository/com/gituhb/daggerok
key: ${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
- uses: actions/setup-java@v1
with:
java-version: ${{ env.JAVA_VERSION }}
- run: cd $GITHUB_WORKSPACE ; ./mvnw versions:display-plugin-updates
- run: cd $GITHUB_WORKSPACE ; ./mvnw versions:display-property-updates
- run: cd $GITHUB_WORKSPACE ; ./mvnw versions:display-parent-updates