Skip to content

Commit

Permalink
Migrate most tests to GH Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Olafur Pall Geirsson committed Mar 20, 2020
1 parent 4d19177 commit bf60013
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 50 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
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: ${{ matrix.command }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command:
- "ci-211"
- "ci-212"
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
- run: sbt ${{ matrix.command }}
jdk11:
name: JDK11 tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
with:
java-version: adopt@1.11
- run: sbt ci-212
windows:
name: Windows tests
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
- run: sbt ci-212-windows
shell: bash
checks:
name: Scalafmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
- run: ./scalafmt --test
9 changes: 4 additions & 5 deletions .jvmopts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
-Dfile.encoding=UTF8
-Xss8m
-Xss4m
-Xms1G
-Xmx4G
-XX:ReservedCodeCacheSize=250M
-Xmx2G
-XX:ReservedCodeCacheSize=1024m
-XX:+TieredCompilation
-XX:-UseGCOverheadLimit
-XX:+CMSClassUnloadingEnabled
-Dfile.encoding=UTF-8
15 changes: 1 addition & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,8 @@ before_install:
fi
jobs:
include:
- name: Scalafmt
script: ./scalafmt --test
- name: 2.11
script: ./sbt ci-211
- name: 2.12
script: ./sbt ci-212
- jdk: openjdk11
name: 2.12
script: ./sbt ci-212

# Disabled until stable v0.6
# - env: TEST="mima"
# script: sbt mima
- stage: release
script: ./sbt docs/docusaurusPublishGhpages
script: ./sbt ci-release docs/docusaurusPublishGhpages

cache:
directories:
Expand Down
30 changes: 0 additions & 30 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 @@ -2,7 +2,7 @@ import sbt._
/* scalafmt: { maxColumn = 120 }*/

object Dependencies {
val scalametaV = "4.3.6"
val scalametaV = "4.3.7"
val metaconfigV = "0.9.9"
def scala210 = "2.10.7"
def scala211 = "2.11.12"
Expand Down

0 comments on commit bf60013

Please sign in to comment.