1
1
name : CI
2
2
on :
3
3
push :
4
- branches : [ main ]
4
+ branches : [main]
5
5
pull_request :
6
- branches : [ main ]
6
+ branches : [main]
7
7
schedule :
8
- - cron : ' 0 0 * * *'
8
+ - cron : ' 0 0 * * *'
9
9
jobs :
10
10
build :
11
- runs-on : ubuntu-20.04
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ os : [ ubuntu-latest ]
15
+
16
+ scala : [ 2.11.12, 2.12.13, 2.13.5 ]
17
+ runs-on : ${{ matrix.os }}
12
18
env :
13
19
JAVA_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
14
20
JVM_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
@@ -20,15 +26,57 @@ jobs:
20
26
fetch-depth : 0
21
27
- uses : olafurpg/setup-scala@v10
22
28
with :
23
-
29
+ java-version : ${{ matrix.jdk }}
24
30
- uses : coursier/cache-action@v5
25
- - run : sbt -v scalafmtCheckAll
26
- - run : sbt -v +compile
27
- - run : sbt -v +test
31
+ - run : sbt -v ++${{ matrix.scala }} compile
28
32
- name : clean up
29
- run : |
30
- rm -rf "$HOME/.ivy2/local" || true
31
- find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
32
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
33
- find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
34
- find $HOME/.sbt -name "*.lock" -delete || true
33
+ run : " ${GITHUB_WORKSPACE}/.github/clean-up.sh"
34
+ test :
35
+ strategy :
36
+ fail-fast : false
37
+ matrix :
38
+ os : [ ubuntu-latest ]
39
+
40
+ scala : [ 2.11.12, 2.12.13, 2.13.5 ]
41
+ runs-on : ${{ matrix.os }}
42
+ needs : build
43
+ env :
44
+ JAVA_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
45
+ JVM_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
46
+ AWS_REGION : ap-northeast-1
47
+ TEST_TIME_FACTOR : 5
48
+ steps :
49
+
50
+ with :
51
+ fetch-depth : 0
52
+ - uses : olafurpg/setup-scala@v10
53
+ with :
54
+ java-version : ${{ matrix.jdk }}
55
+ - uses : coursier/cache-action@v5
56
+ - uses : olafurpg/setup-gpg@v3
57
+ - run : sbt -v ++${{ matrix.scala }} test
58
+ - name : clean up
59
+ run : " ${GITHUB_WORKSPACE}/.github/clean-up.sh"
60
+ snapshot :
61
+ runs-on : ubuntu-latest
62
+ needs : test
63
+ env :
64
+ JAVA_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
65
+ JVM_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
66
+ steps :
67
+
68
+ with :
69
+ fetch-depth : 0
70
+ - uses : olafurpg/setup-scala@v10
71
+ with :
72
+
73
+ - uses : coursier/cache-action@v5
74
+ - uses : olafurpg/setup-gpg@v3
75
+ - run : sbt -v ci-release
76
+ env :
77
+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
78
+ PGP_SECRET : ${{ secrets.PGP_SECRET }}
79
+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
80
+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
81
+ - name : clean up
82
+ run : " ${GITHUB_WORKSPACE}/.github/clean-up.sh"
0 commit comments