File tree 4 files changed +75
-29
lines changed
4 files changed +75
-29
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ java : [8, 11]
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Cache
18
+ uses : actions/cache@v2
19
+ env :
20
+ cache-name : cache-sbt-libs
21
+ with :
22
+ path : |
23
+ ~/.ivy2/cache
24
+ ~/.sbt
25
+ ~/.coursier
26
+ key : build-${{ env.cache-name }}-${{ hashFiles('build.sbt') }}
27
+ - name : Set up JDK
28
+ uses : actions/setup-java@v1
29
+ with :
30
+ java-version : ${{ matrix.java }}
31
+ - name : Run tests
32
+ run : |
33
+ git clone https://github.com/gitbucket/gitbucket.git
34
+ cd gitbucket
35
+ sbt publishLocal
36
+ cd ../
37
+ sbt test
38
+ - name : Assembly
39
+ run : sbt assembly
40
+ - name : Upload artifacts
41
+ uses : actions/upload-artifact@v2
42
+ with :
43
+ name : gitbucket-pages-plugin-java${{ matrix.java }}-${{ github.sha }}
44
+ path : ./target/scala-2.13/*.jar
45
+
Original file line number Diff line number Diff line change 1
- * .iml
2
- .idea /
1
+ * .class
2
+ * .log
3
+
4
+ # sbt specific
5
+ dist /*
3
6
target /
7
+ lib_managed /
8
+ src_managed /
9
+ project /boot /
10
+ project /plugins /project /
11
+
12
+ # Scala-IDE specific
13
+ .scala_dependencies
14
+ .classpath
15
+ .project
16
+ .cache
17
+ .settings
18
+
19
+ # IntelliJ specific
20
+ .idea /
21
+ .idea_modules /
22
+
23
+ # Ensime
24
+ .ensime
25
+ .ensime_cache /
26
+
27
+ # Metals
28
+ .metals
29
+ .bloop
30
+ project /metals.sbt
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -92,5 +92,4 @@ server {
92
92
93
93
## CI
94
94
95
- - build by [ travis-ci] ( https://travis-ci.org/gitbucket/gitbucket-pages-plugin )
96
-
95
+ - build by [ GitHub Actions] ( https://github.com/gitbucket/gitbucket-pages-plugin/actions )
You can’t perform that action at this time.
0 commit comments