File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : GitLab4J CI
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ publish :
8
+ name : " Build JDK 11"
9
+ runs-on : ubuntu-latest
10
+ services :
11
+ gitlab-instance :
12
+ image : gitlab/gitlab-ce:12.9.2-ce.0
13
+ env :
14
+ GITLAB_OMNIBUS_CONFIG : gitlab_rails['initial_root_password']="password";gitlab_rails['lfs_enabled']=false;
15
+ ports :
16
+ - 8090:80
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ with :
20
+ fetch-depth : 0
21
+ - name : Set up JDK 11
22
+ uses : actions/setup-java@v2
23
+ with :
24
+ distribution : adopt-hotspot
25
+ java-version : 11
26
+ - name : Get Date
27
+ id : get-date
28
+ run : |
29
+ echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
30
+ shell : bash
31
+ - name : Cache Maven Repository
32
+ id : cache-maven
33
+ uses : actions/cache@v2
34
+ with :
35
+ path : ~/.m2/repository
36
+ # refresh cache every month to avoid unlimited growth
37
+ key : gitlab4jmaven-${{ steps.get-date.outputs.date }}
38
+ - name : GitLab4j verify
39
+ id : gitlab4j-verify
40
+ run : |
41
+ ./mvnw verify -B -V
42
+ - name : Publish package
43
+ run : mvn deploy -DskipTests
44
+ env :
45
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments