Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 823ed08

Browse files
authored
Merge pull request #336 from exoego/actions
Migrate to Github actions
2 parents b738d1d + 100da68 commit 823ed08

File tree

6 files changed

+32
-44
lines changed

6 files changed

+32
-44
lines changed

.github/workflows/ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
on: [pull_request]
3+
jobs:
4+
ci:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
scala: [2.13.3, 2.12.12]
10+
nodejs: [14.15.1, 12.19.1, 10.23.0]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: olafurpg/setup-scala@v10
14+
with:
15+
java-version: [email protected]
16+
- uses: coursier/cache-action@v5
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.nodejs }}
20+
- run: npm install
21+
- name: Run Tests
22+
run: sbt ++${{ matrix.scala }} test
23+
env:
24+
NODEJS_VERSION: ${{ matrix.nodejs }}

.github/workflows/format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
strategy:
77
fail-fast: false
88
steps:
9-
- uses: actions/checkout@v1
10-
- uses: olafurpg/setup-scala@v5
9+
- uses: actions/checkout@v2
10+
- uses: olafurpg/setup-scala@v10
1111
- name: Check Scalafmt/Scaladoc
12-
run: sbt ++2.13.3 scalafmtSbtCheck scalafmtCheck test:scalafmtCheck nodejs_v14/doc core/doc
12+
run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck nodejs_v14/doc core/doc
1313
- name: Install NPM deps
1414
run: npm install
1515
- name: Check README

.mergify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pull_request_rules:
22
- name: Automatic merge on approval
33
conditions:
44
- "author=scala-steward"
5-
- "status-success=Travis CI - Pull Request"
5+
- "status-success=CI"
66
- "status-success=format"
77
actions:
88
merge:

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

build.sbt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
organization in ThisBuild := "net.exoego"
2+
crossScalaVersions in ThisBuild := Seq("2.13.3", "2.12.12")
23

34
lazy val root = {
45
val p = (project in file("."))
@@ -9,9 +10,9 @@ lazy val root = {
910
.settings(
1011
name := "scala-js-nodejs"
1112
)
12-
val travisNodeVersion = Option(System.getenv("TRAVIS_NODE_VERSION")).filter(_.nonEmpty).getOrElse("")
13-
if (travisNodeVersion.startsWith("10.")) p.aggregate(nodejs_v10)
14-
else if (travisNodeVersion.startsWith("12.")) p.aggregate(nodejs_v10, nodejs_v12)
13+
val nodejsVersion = Option(System.getenv("NODEJS_VERSION")).filter(_.nonEmpty).getOrElse("")
14+
if (nodejsVersion.startsWith("10.")) p.aggregate(nodejs_v10)
15+
else if (nodejsVersion.startsWith("12.")) p.aggregate(nodejs_v10, nodejs_v12)
1516
else p.aggregate(nodejs_v10, nodejs_v12, nodejs_v14)
1617
}
1718

project/plugins.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.5")
44
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13")
55
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
66
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
7-
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.2.0")

0 commit comments

Comments
 (0)