Skip to content

Commit f8e1b09

Browse files
committed
Migrate the CI to GitHub Actions.
1 parent 273ed09 commit f8e1b09

File tree

3 files changed

+38
-32
lines changed

3 files changed

+38
-32
lines changed

.github/workflows/ci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
scalaversion: ["2.11.12", "2.12.10", "2.13.1"]
16+
scalajsversion: ["1.x", "0.6.x"]
17+
include:
18+
- scalaversion: "2.10.7"
19+
scalajsversion: "0.6.x"
20+
env:
21+
SCALAJS_VERSION: "${{ matrix.scalajsversion == '0.6.x' && '0.6.31' || '' }}"
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: olafurpg/setup-scala@v10
25+
with:
26+
java-version: "[email protected]"
27+
- uses: coursier/cache-action@v5
28+
- name: Scalastyle
29+
run: sbt "++${{ matrix.scalaversion }}" root/scalastyle testSuiteJVM/scalastyle testSuiteJVM/test:scalastyle testSuiteJS/scalastyle testSuiteJS/test:scalastyle
30+
- name: Test JVM
31+
run: sbt "++${{ matrix.scalaversion }}" testSuiteJVM/test
32+
- name: Test JS
33+
run: sbt "++${{ matrix.scalaversion }}" testSuiteJS/test
34+
- name: Test JS fullOpt
35+
run: sbt "++${{ matrix.scalaversion }}" 'set scalaJSStage in Global := FullOptStage' testSuiteJS/test
36+
- name: Test publish
37+
run: sbt "++${{ matrix.scalaversion }}" publishLocal

.travis.yml

-31
This file was deleted.

project/build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
val scalaJSVersion =
2-
Option(System.getenv("SCALAJS_VERSION")).getOrElse("1.0.0")
2+
Option(System.getenv("SCALAJS_VERSION")).filter(_ != "").getOrElse("1.0.0")
33

44
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
55
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.6.1")

0 commit comments

Comments
 (0)