File tree Expand file tree Collapse file tree 3 files changed +52
-16
lines changed Expand file tree Collapse file tree 3 files changed +52
-16
lines changed Original file line number Diff line number Diff line change 1+ name : Scala CI
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-gist-plugin-java${{ matrix.java }}-${{ github.sha }}
44+ path : ./target/scala-2.13/*.jar
45+
46+
Original file line number Diff line number Diff line change @@ -22,4 +22,9 @@ project/plugins/project/
2222
2323# Ensime
2424.ensime
25- .ensime_cache /
25+ .ensime_cache /
26+
27+ # Metals
28+ .metals
29+ .bloop
30+ project /metals.sbt
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments