File tree Expand file tree Collapse file tree 13 files changed +85
-30
lines changed
src/main/scala/definitions Expand file tree Collapse file tree 13 files changed +85
-30
lines changed Original file line number Diff line number Diff line change 2
2
3
3
on :
4
4
push :
5
+ paths-ignore :
6
+ - ' *.md'
5
7
branches : [ master ]
6
8
tags :
7
9
- ' *'
@@ -13,41 +15,41 @@ jobs:
13
15
runs-on : ubuntu-latest
14
16
steps :
15
17
16
- - name : Git checkout
17
- uses : actions/checkout@v2
18
+ - name : Git checkout (merge)
19
+ uses : actions/checkout@v3
20
+ if : github.event_name != 'pull_request'
18
21
with :
19
22
fetch-depth : 0
20
23
24
+ - name : Git checkout (PR)
25
+ uses : actions/checkout@v3
26
+ if : github.event_name == 'pull_request'
27
+ with :
28
+ fetch-depth : 0
29
+ # see: https://frontside.com/blog/2020-05-26-github-actions-pull_request/#how-does-pull_request-affect-actionscheckout
30
+ ref : ${{ github.event.pull_request.head.sha }}
31
+
21
32
- name : Setup Node.js
22
- uses : actions/setup-node@v2
33
+ uses : actions/setup-node@v3
23
34
with :
24
- node-version : ' 12 '
35
+ node-version : ' 16 '
25
36
26
37
- name : Set up JDK 8
27
- uses : actions/setup-java@v2
38
+ uses : actions/setup-java@v3
28
39
with :
29
40
java-version : ' 8'
30
41
distribution : ' adopt'
31
-
32
- - name : Cache sbt
33
- uses : actions/cache@v2
34
- with :
35
- path : |
36
- ~/.sbt
37
- ~/.ivy2/cache
38
- ~/.coursier/cache/v1
39
- ~/.cache/coursier/v1
40
- key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt', 'project/**/*.scala') }}
42
+ cache : ' sbt'
41
43
42
44
- name : Cache node_modules
43
- uses : actions/cache@v2
45
+ uses : actions/cache@v3
44
46
with :
45
47
path : |
46
48
~/.npm
47
49
~/.nvm
48
- key : ${{ runner.os }}-node_modules-cache-v2 -${{ hashFiles('**/package-lock.json') }}
50
+ key : ${{ runner.os }}-node_modules-cache-v3 -${{ hashFiles('**/package-lock.json') }}
49
51
restore-keys : |
50
- ${{ runner.os }}-node_modules-cache-v2 -
52
+ ${{ runner.os }}-node_modules-cache-v3 -
51
53
52
54
- name : Extract Tag Name
53
55
run : echo "TAG_NAME=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV
Original file line number Diff line number Diff line change 1
1
* .class
2
2
* .log
3
+ package-lock.json
3
4
4
5
# sbt specific
5
6
.cache
Original file line number Diff line number Diff line change
1
+ -J-Xmx2G
2
+ -J-XX:+UseG1GC
Original file line number Diff line number Diff line change 2
2
[ ![ CI] ( https://github.com/scommons/scommons-api/actions/workflows/ci.yml/badge.svg?branch=master )] ( https://github.com/scommons/scommons-api/actions/workflows/ci.yml?query=workflow%3Aci+branch%3Amaster )
3
3
[ ![ Coverage Status] ( https://coveralls.io/repos/github/scommons/scommons-api/badge.svg?branch=master )] ( https://coveralls.io/github/scommons/scommons-api?branch=master )
4
4
[ ![ scala-index] ( https://index.scala-lang.org/scommons/scommons-api/scommons-api-core/latest.svg )] ( https://index.scala-lang.org/scommons/scommons-api/scommons-api-core )
5
- [ ![ Scala.js] ( https://www.scala-js.org/assets/badges/scalajs-1.5 .0.svg )] ( https://www.scala-js.org )
5
+ [ ![ Scala.js] ( https://www.scala-js.org/assets/badges/scalajs-1.8 .0.svg )] ( https://www.scala-js.org )
6
6
7
7
## scommons-api
8
8
Common REST API Scala/Scala.js components
Original file line number Diff line number Diff line change 1
- sbt.version = 1.5 .2
1
+ sbt.version = 1.6 .2
Original file line number Diff line number Diff line change 1
1
// resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/"
2
2
resolvers += " Sonatype Snapshots" at " https://oss.sonatype.org/content/repositories/snapshots/"
3
3
4
- // addSbtPlugin(("org.scommons.sbt" % "sbt-scommons-plugin" % "0.9 .0-SNAPSHOT").changing())
5
- addSbtPlugin(" org.scommons.sbt" % " sbt-scommons-plugin" % " 0.9.0" )
4
+ addSbtPlugin((" org.scommons.sbt" % " sbt-scommons-plugin" % " 1.0 .0-SNAPSHOT" ).changing())
5
+ // addSbtPlugin("org.scommons.sbt" % "sbt-scommons-plugin" % "0.9.0")
6
6
7
7
addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 3.9.5" )
8
8
addSbtPlugin(" com.jsuereth" % " sbt-pgp" % " 1.1.0" )
9
9
10
- addSbtPlugin(" org.scoverage" % " sbt-scoverage" % " 1.7 .3" )
11
- addSbtPlugin(" org.scoverage" % " sbt-coveralls" % " 1.2.7 " )
10
+ addSbtPlugin(" org.scoverage" % " sbt-scoverage" % " 1.9 .3" )
11
+ addSbtPlugin(" org.scoverage" % " sbt-coveralls" % " 1.3.2 " )
Original file line number Diff line number Diff line change 1
1
package definitions
2
2
3
- import common .TestLibs
3
+ import common .{ Libs , TestLibs }
4
4
import sbt .Keys ._
5
5
import sbt ._
6
6
import sbtcrossproject .CrossPlugin .autoImport ._
@@ -29,7 +29,11 @@ object ApiAdmin {
29
29
// Add JVM-specific settings here
30
30
).jsSettings(
31
31
// Add JS-specific settings here
32
- ScalaJsModule .settings: _*
32
+ ScalaJsModule .settings ++ Seq (
33
+ libraryDependencies ++= Seq (
34
+ Libs .scalaJsJavaSecureRandom.value % " test"
35
+ )
36
+ ): _*
33
37
)
34
38
35
39
lazy val jvm : Project = `scommons-api-admin`.jvm
Original file line number Diff line number Diff line change @@ -31,7 +31,11 @@ object ApiCore {
31
31
Libs .jodaTime.value
32
32
)
33
33
).jsSettings(
34
- ScalaJsModule .settings: _*
34
+ ScalaJsModule .settings ++ Seq (
35
+ libraryDependencies ++= Seq (
36
+ Libs .scalaJsJavaSecureRandom.value % " test"
37
+ )
38
+ ): _*
35
39
)
36
40
37
41
lazy val jvm : Project = `scommons-api-core`.jvm
Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ object ApiJodaTime {
30
30
Libs .jodaTime.value
31
31
)
32
32
).jsSettings(
33
- ScalaJsModule .settings: _*
33
+ ScalaJsModule .settings ++ Seq (
34
+ libraryDependencies ++= Seq (
35
+ Libs .scalaJsJavaSecureRandom.value % " test"
36
+ )
37
+ ): _*
34
38
)
35
39
36
40
lazy val jvm : Project = `scommons-api-joda-time`.jvm
Original file line number Diff line number Diff line change 1
1
package definitions
2
2
3
+ import org .scoverage .coveralls .Imports .CoverallsKeys ._
3
4
import sbt .Keys ._
4
5
import sbt ._
5
6
import scommons .sbtplugin .project .CommonModule
@@ -20,6 +21,8 @@ object ApiModule {
20
21
val settings : Seq [Setting [_]] = Seq (
21
22
organization := " org.scommons.api" ,
22
23
24
+ coverallsService := GitHubActionsCI .jobId.map(_ => GitHubActionsCI ),
25
+
23
26
//
24
27
// publish/release related settings:
25
28
//
You can’t perform that action at this time.
0 commit comments