Taro L. Saito 7082397d2d
Use GitHub Actions (#250)
* Use GitHub Actions
* Ignore SnappyHadoopComptibleOutputStreamTest
* Build only master branches
* Simplify travis build
* Remove jvm option, which doesn't work for s390x
2020-06-25 23:51:45 -07:00

57 lines
1.2 KiB
YAML

name: CI
on:
pull_request:
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '.github/workflows/*.yml'
push:
branches:
- master
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '.github/workflows/*.yml'
jobs:
code_format:
name: code format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: scalafmt test
run: ./sbt scalafmtCheckAll
test:
name: test jdk11
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
with:
java-version: adopt@1.11
- uses: actions/cache@v1
with:
path: ~/.cache
key: ${{ runner.os }}-jdk11-${{ hashFiles('**/*.sbt') }}
restore-keys: ${{ runner.os }}-jdk11-
- name: Test
run: ./sbt test
test_jdk8:
name: test jdk8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
with:
java-version: adopt@1.8
- uses: actions/cache@v1
with:
path: ~/.cache
key: ${{ runner.os }}-jdk8-${{ hashFiles('**/*.sbt') }}
restore-keys: ${{ runner.os }}-jdk8-
- name: Test
run: ./sbt test