Skip to content

Commit

Permalink
change ci from travis-ci to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
takemikami committed Feb 20, 2021
1 parent d6d6496 commit 4c03222
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 14 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Java CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Test
run: ./gradlew test

- name: Report
run: ./gradlew jacocoTestReport coveralls
env:
COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}}
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 4c03222

Please sign in to comment.