Skip to content

Commit

Permalink
Switched from Travis to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
whiskeysierra committed Nov 20, 2019
1 parent b272a52 commit 741abf1
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 19 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Continuous Integration

on:
pull_request:
branches:
- master
push:
branches:
- master
schedule:
- cron: "0 6 * * *"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache
uses: actions/cache@v1
with:
path: ~/.m2
key: m2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Compile
run: ./mvnw clean test-compile -B
- name: Test
run: ./mvnw verify -B
- name: Coverage
run: ./mvnw coveralls:report -B -D repoToken=${{ secrets.COVERALLS_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/release-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Pull Request

on:
push:
branches:
- release/*

jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- name: pull-request-action
uses: vsoch/pull-request-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_TITLE: Release ${{ github.ref }}
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: ${{ contains(github.ref, 'RC') }}
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

0 comments on commit 741abf1

Please sign in to comment.