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

Migrate to Github actions #336

Merged
merged 3 commits into from
Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI
on: [pull_request]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scala: [2.13.3, 2.12.12]
nodejs: [14.15.1, 12.19.1, 10.23.0]
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- uses: coursier/cache-action@v5
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.nodejs }}
- run: npm install
- name: Run Tests
run: sbt ++${{ matrix.scala }} test
env:
NODEJS_VERSION: ${{ matrix.nodejs }}
6 changes: 3 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v5
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v10
- name: Check Scalafmt/Scaladoc
run: sbt ++2.13.3 scalafmtSbtCheck scalafmtCheck test:scalafmtCheck nodejs_v14/doc core/doc
run: sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck nodejs_v14/doc core/doc
- name: Install NPM deps
run: npm install
- name: Check README
Expand Down
2 changes: 1 addition & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pull_request_rules:
- name: Automatic merge on approval
conditions:
- "author=scala-steward"
- "status-success=Travis CI - Pull Request"
- "status-success=CI"
- "status-success=format"
actions:
merge:
Expand Down
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

7 changes: 4 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
organization in ThisBuild := "net.exoego"
crossScalaVersions in ThisBuild := Seq("2.13.3", "2.12.12")

lazy val root = {
val p = (project in file("."))
Expand All @@ -9,9 +10,9 @@ lazy val root = {
.settings(
name := "scala-js-nodejs"
)
val travisNodeVersion = Option(System.getenv("TRAVIS_NODE_VERSION")).filter(_.nonEmpty).getOrElse("")
if (travisNodeVersion.startsWith("10.")) p.aggregate(nodejs_v10)
else if (travisNodeVersion.startsWith("12.")) p.aggregate(nodejs_v10, nodejs_v12)
val nodejsVersion = Option(System.getenv("NODEJS_VERSION")).filter(_.nonEmpty).getOrElse("")
if (nodejsVersion.startsWith("10.")) p.aggregate(nodejs_v10)
else if (nodejsVersion.startsWith("12.")) p.aggregate(nodejs_v10, nodejs_v12)
else p.aggregate(nodejs_v10, nodejs_v12, nodejs_v14)
}

Expand Down
1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.5")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.2.0")