Skip to content

Commit 41bec00

Browse files
committed
add GitHub Actions, drop Travis-CI
references scala/scala-dev#785
1 parent 0c59bbe commit 41bec00

File tree

6 files changed

+48
-71
lines changed

6 files changed

+48
-71
lines changed

.github/workflows/ci.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
test:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
java: [8, 11, 17-ea]
13+
scala: [2.13.6, 3.0.1]
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: coursier/cache-action@v6
18+
- uses: actions/setup-java@v2
19+
with:
20+
distribution: adopt
21+
java-version: ${{matrix.java}}
22+
- name: Test
23+
run: sbt ++${{matrix.scala}} test core/headerCheck package

.github/workflows/release.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: ["*"]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: 0
12+
- uses: actions/setup-java@v2
13+
with:
14+
distribution: adopt
15+
java-version: 8
16+
- run: sbt versionCheck ci-release
17+
env:
18+
PGP_PASSPHRASE: ${{secrets.PGP_PASSPHRASE}}
19+
PGP_SECRET: ${{secrets.PGP_SECRET}}
20+
SONATYPE_PASSWORD: ${{secrets.SONATYPE_PASSWORD}}
21+
SONATYPE_USERNAME: ${{secrets.SONATYPE_USERNAME}}

.travis.yml

-19
This file was deleted.

build.sbt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
ThisBuild / crossScalaVersions := Seq("2.13.6", "3.0.1")
2+
ThisBuild / scalaVersion := (ThisBuild / crossScalaVersions).value.head
3+
14
Global / cancelable := true
25
publish / skip := true // in root
36

build.sh

-51
This file was deleted.

project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.4.0")
1+
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "3.0.0-RC3")

0 commit comments

Comments
 (0)