Skip to content

Commit

Permalink
Setup GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Olafur Pall Geirsson committed Apr 21, 2020
1 parent 3c1fca5 commit 5ca673e
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 59 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* eol=lf
*.png eol=autocrlf
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: ${{ matrix.command }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command:
- "++2.12.11 test scripted"
- "++2.10.7 test 'scripted sbt-scalafix/*'"
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
- run: sbt ${{ matrix.command }}
windows:
name: Windows tests
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
- run: sbt ci-windows
shell: bash
checks:
name: Scalafmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
- run: ./bin/scalafmt --test
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

28 changes: 0 additions & 28 deletions appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ object Dependencies {
// sbt-scalafix doesn't conflict with the user's installed version of sbt-coursier.
// Details: https://github.com/olafurpg/coursier-small
"com.geirsson" %% "coursier-small" % "1.3.3",
"io.get-coursier" % "interface" % "0.0.19"
"io.get-coursier" % "interface" % "0.0.21"
)
}
2 changes: 2 additions & 0 deletions src/test/scala/scalafix/internal/sbt/ScalafixAPISuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import scalafix.interfaces.ScalafixError

import scala.collection.JavaConverters._
import org.scalatest.funsuite.AnyFunSuite
import scala.util.Properties

class ScalafixAPISuite extends AnyFunSuite {

Expand All @@ -23,6 +24,7 @@ class ScalafixAPISuite extends AnyFunSuite {
}

test("ScalafixPlugin.cli") {
assume(!Properties.isWin)
val baos = new ByteArrayOutputStream()
val logger = Compat.ConsoleLogger(new PrintStream(baos))
val ScalafixInterface(_, args) = ScalafixInterface.fromToolClasspath(
Expand Down

0 comments on commit 5ca673e

Please sign in to comment.