Skip to content

Commit

Permalink
Issue 141: migrate travis-ci to githubactions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaladay committed Jan 14, 2021
1 parent dfc4cd4 commit aa821a9
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 22 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,31 @@
name: Build

on: [ push, pull_request, workflow_dispatch ]

jobs:
java:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: "Maven Cache"
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-cache-maven-${{ hashFiles('**/pom.xml') }}

- name: "Setup Java"
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: "Maven Test"
run: mvn clean test cobertura:cobertura jacoco:report coveralls:report -DdryRun=true

- name: "Send to Coveralls (build java-${{ github.run_number }})"
uses: MikeEdgar/github-action@raw_coverage_file
with:
github-token: ${{ secrets.github_token }}
path-to-file: './target/coveralls.json'
coverage-format: raw
38 changes: 38 additions & 0 deletions .github/workflows/ghpages.yml
@@ -0,0 +1,38 @@
name: GHPages

on:
push:
branches:
- $default_branch

workflow_dispatch:

jobs:
ghpages:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: "Maven Cache"
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-cache-maven-${{ hashFiles('**/pom.xml') }}

- name: "Setup Java"
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: "Maven Test"
run: mvn clean test cobertura:cobertura jacoco:report coveralls:report -DdryRun=true

- name: "Deploy GH-Pages"
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
github_token: ${{ secrets.github_token }}
branch: gh-pages
folder: target/generated-docs
clean: true
single_commit: true
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/TAMULib/ProjectManagementService.svg?branch=master)](https://travis-ci.org/TAMULib/ProjectManagementService) [![Coverage Status](https://coveralls.io/repos/github/TAMULib/ProjectManagementService/badge.svg?branch=master)](https://coveralls.io/github/TAMULib/ProjectManagementService?branch=master)
[![Build Status](https://github.com/TAMULib/ProjectManagementService/workflows/Build/badge.svg)](https://github.com/TAMULib/ProjectManagementService/actions?query=workflow%3ABuild)
[![Coverage Status](https://coveralls.io/repos/github/TAMULib/ProjectManagementService/badge.svg)](https://coveralls.io/github/TAMULib/ProjectManagementService)

# Product Management Service
The Product Management Service is designed to connect our Library Webservice Status Application to our Version Management Software.
Expand Down

0 comments on commit aa821a9

Please sign in to comment.