-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (104 loc) · 3.43 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: 'GitHub actions'
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
inputs:
check-updates:
description: 'Check Gradle versions updates'
required: true
default: '.'
jobs:
dependency-updates:
if: github.event.inputs.check-updates != '' # disable local deploy triggered automatically as not needed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: akka-examples-gradle
with:
path: ~/.gradle
key: ${{ runner.os }}-${{ hashFiles('**/build.gradle.kts') }}
- uses: actions/cache@v2
id: akka-examples-mvn
with:
path: |
~/.m2
!~/.m2/repository/com/gituhb/daggerok
key: ${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
- uses: actions/cache@v2
id: akka-examples-npm
with:
path: ~/.npm
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
- uses: actions/setup-java@v1
with:
java-version: 1.8
- run: echo './gradlew dependencyUpdates -Drevision=release'
rsocket-akka-app:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: akka-examples-gradle
with:
path: ~/.gradle
key: ${{ runner.os }}-${{ hashFiles('**/build.gradle.kts') }}
- uses: actions/setup-java@v1
with:
java-version: 11
- run: cd ./rsocket-akka-app ; ./gradlew clean build fatJar
- run: java -jar ./rsocket-akka-app/build/libs/*-all.jar
hello-world:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: akka-examples-gradle
with:
path: ~/.gradle
key: ${{ runner.os }}-${{ hashFiles('**/build.gradle.kts') }}
- uses: actions/cache@v2
id: akka-examples-mvn
with:
path: |
~/.m2
!~/.m2/repository/com/gituhb/daggerok
key: ${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
- uses: actions/setup-java@v1
with:
java-version: 11
- run: cd ./hello-world-gradle ; ./gradlew clean build fatJar
- run: cd ./hello-world-gradle ; java -jar ./build/libs/*-all.jar
- run: cd ./hello-world-maven ; ./mvnw clean package
- run: cd ./hello-world-maven ; java -jar ./target/*-all.jar
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: akka-examples-mvn
with:
path: |
~/.m2
!~/.m2/repository/com/gituhb/daggerok
key: ${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
- uses: actions/cache@v2
id: akka-examples-npm
with:
path: ~/.npm
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/setup-node@v2
- run: ./mvnw
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages # The branch the action should deploy to.
folder: target/generated-docs # The folder the action should deploy.